diff --git a/docs/API_docs/methods/account.getPasswordSettings.md b/docs/API_docs/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/docs/API_docs/methods/account.getPasswordSettings.md +++ b/docs/API_docs/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/docs/API_docs/methods/account.updatePasswordSettings.md b/docs/API_docs/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/docs/API_docs/methods/account.updatePasswordSettings.md +++ b/docs/API_docs/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/auth.bindTempAuthKey.md b/docs/API_docs/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/docs/API_docs/methods/auth.bindTempAuthKey.md +++ b/docs/API_docs/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/auth.checkPassword.md b/docs/API_docs/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/docs/API_docs/methods/auth.checkPassword.md +++ b/docs/API_docs/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/docs/API_docs/methods/auth.exportAuthorization.md b/docs/API_docs/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/docs/API_docs/methods/auth.exportAuthorization.md +++ b/docs/API_docs/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/docs/API_docs/methods/auth.importAuthorization.md b/docs/API_docs/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/docs/API_docs/methods/auth.importAuthorization.md +++ b/docs/API_docs/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/docs/API_docs/methods/auth.importBotAuthorization.md b/docs/API_docs/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/docs/API_docs/methods/auth.importBotAuthorization.md +++ b/docs/API_docs/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/docs/API_docs/methods/auth.logOut.md b/docs/API_docs/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/docs/API_docs/methods/auth.logOut.md +++ b/docs/API_docs/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/docs/API_docs/methods/auth.sendCode.md b/docs/API_docs/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/docs/API_docs/methods/auth.sendCode.md +++ b/docs/API_docs/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/docs/API_docs/methods/auth.signIn.md b/docs/API_docs/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/docs/API_docs/methods/auth.signIn.md +++ b/docs/API_docs/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/docs/API_docs/methods/auth.signUp.md b/docs/API_docs/methods/auth.signUp.md index 720c8e4a..4d327eb6 100644 --- a/docs/API_docs/methods/auth.signUp.md +++ b/docs/API_docs/methods/auth.signUp.md @@ -1,22 +1,22 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/docs/API_docs/methods/channels.getFullChannel.md b/docs/API_docs/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/docs/API_docs/methods/channels.getFullChannel.md +++ b/docs/API_docs/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/docs/API_docs/methods/contacts.resolveUsername.md b/docs/API_docs/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/docs/API_docs/methods/contacts.resolveUsername.md +++ b/docs/API_docs/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 04c63100..ff794628 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -150,8 +138,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation @@ -180,10 +166,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -238,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -284,8 +264,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -302,8 +280,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -398,12 +374,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -452,12 +422,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -474,8 +440,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -490,14 +454,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -506,20 +466,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -532,8 +482,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -552,10 +500,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -580,8 +524,6 @@ Use this method to respond to such pre-checkout queries. * Send scheduled messages right away: messages.sendScheduledMessages -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -598,26 +540,18 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -630,8 +564,6 @@ After calling this method it is necessary to reregister the current device using * Transfer channel ownership: channels.editCreator -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -672,5 +604,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/docs/API_docs/methods/messages.acceptEncryption.md b/docs/API_docs/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/docs/API_docs/methods/messages.acceptEncryption.md +++ b/docs/API_docs/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/docs/API_docs/methods/messages.discardEncryption.md b/docs/API_docs/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/docs/API_docs/methods/messages.discardEncryption.md +++ b/docs/API_docs/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/messages.getDhConfig.md b/docs/API_docs/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/docs/API_docs/methods/messages.getDhConfig.md +++ b/docs/API_docs/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/docs/API_docs/methods/messages.getFullChat.md b/docs/API_docs/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/docs/API_docs/methods/messages.getFullChat.md +++ b/docs/API_docs/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/docs/API_docs/methods/messages.receivedQueue.md b/docs/API_docs/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/docs/API_docs/methods/messages.receivedQueue.md +++ b/docs/API_docs/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/docs/API_docs/methods/messages.requestEncryption.md b/docs/API_docs/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/docs/API_docs/methods/messages.requestEncryption.md +++ b/docs/API_docs/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/docs/API_docs/methods/phone.acceptCall.md b/docs/API_docs/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/docs/API_docs/methods/phone.acceptCall.md +++ b/docs/API_docs/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/docs/API_docs/methods/phone.confirmCall.md b/docs/API_docs/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/docs/API_docs/methods/phone.confirmCall.md +++ b/docs/API_docs/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/docs/API_docs/methods/phone.discardCall.md b/docs/API_docs/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/docs/API_docs/methods/phone.discardCall.md +++ b/docs/API_docs/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/phone.requestCall.md b/docs/API_docs/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/docs/API_docs/methods/phone.requestCall.md +++ b/docs/API_docs/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/docs/API_docs/methods/updates.getChannelDifference.md b/docs/API_docs/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/docs/API_docs/methods/updates.getChannelDifference.md +++ b/docs/API_docs/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/docs/API_docs/methods/updates.getDifference.md b/docs/API_docs/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/docs/API_docs/methods/updates.getDifference.md +++ b/docs/API_docs/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/docs/API_docs/methods/updates.getState.md b/docs/API_docs/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/docs/API_docs/methods/updates.getState.md +++ b/docs/API_docs/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/docs/API_docs/methods/upload.getCdnFile.md b/docs/API_docs/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/docs/API_docs/methods/upload.getCdnFile.md +++ b/docs/API_docs/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/docs/API_docs/methods/upload.getCdnFileHashes.md b/docs/API_docs/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/docs/API_docs/methods/upload.getCdnFileHashes.md +++ b/docs/API_docs/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/docs/API_docs/methods/upload.getFile.md b/docs/API_docs/methods/upload.getFile.md index 6825f57b..a160e7f8 100644 --- a/docs/API_docs/methods/upload.getFile.md +++ b/docs/API_docs/methods/upload.getFile.md @@ -1,22 +1,22 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|precise|[Bool](../types/Bool.md) | Disable some checks on limit and offset values, useful for example to stream videos by keyframes | Optional| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|precise|[Bool](../types/Bool.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Optional| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/docs/API_docs/methods/upload.getFileHashes.md b/docs/API_docs/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/docs/API_docs/methods/upload.getFileHashes.md +++ b/docs/API_docs/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/docs/API_docs/methods/upload.reuploadCdnFile.md b/docs/API_docs/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/docs/API_docs/methods/upload.reuploadCdnFile.md +++ b/docs/API_docs/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/docs/API_docs/methods/upload.saveBigFilePart.md b/docs/API_docs/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/docs/API_docs/methods/upload.saveBigFilePart.md +++ b/docs/API_docs/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/upload.saveFilePart.md b/docs/API_docs/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/docs/API_docs/methods/upload.saveFilePart.md +++ b/docs/API_docs/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/users.getFullUser.md b/docs/API_docs/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/docs/API_docs/methods/users.getFullUser.md +++ b/docs/API_docs/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/docs/index.md b/docs/index.md index f76e82bb..19f40ed9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -182,7 +182,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) * [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) - * Accept incoming call: phone.acceptCall * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -195,10 +194,8 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Associate a group to a channel as [discussion group](https://telegram.org/blog/privacy-discussions-web-bots) for that channel: channels.setDiscussionGroup * Associate a stickerset to the supergroup: channels.setStickers * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned - * 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. * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode - * Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings * Change privacy settings of current account: account.setPrivacy @@ -214,9 +211,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Clear recent stickers: messages.clearRecentStickers * Clear saved payment information: payments.clearSavedInfo * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone - * Confirms creation of a secret chat: messages.acceptEncryption * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages - * Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet * Create a theme: account.createTheme @@ -241,7 +236,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Deletes profile photos.: photos.deletePhotos * Deletes several contacts from the list.: contacts.deleteContacts * Deletes the user from the blacklist.: contacts.unblock - * Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation * Edit message: messages.editMessage @@ -256,8 +250,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Find out if a media message's caption can be edited: messages.getMessageEditData * Finish account takeout session: account.finishTakeoutSession * Forwards messages by their IDs.: messages.forwardMessages - * Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get SHA256 hashes for verifying downloaded files: upload.getFileHashes * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels * Get [instant view](https://instantview.telegram.org) page: messages.getWebPage @@ -285,7 +277,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Get dialogs manually marked as unread: messages.getDialogUnreadMarks * Get faved stickers: messages.getFavedStickers * Get featured stickers: messages.getFeaturedStickers - * Get full info about a channel: channels.getFullChannel * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -308,7 +299,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Get message ranges for saving the user's chat history: messages.getSplitRanges * Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization): messages.requestUrlAuth * Get most used peers: contacts.getTopPeers - * Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt * Get peer settings: messages.getPeerSettings @@ -317,7 +307,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Get poll results: messages.getPollResults * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy - * Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers * Get recently used `t.me` links: help.getRecentMeUrls @@ -365,9 +354,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Leave a [channel/supergroup](https://core.telegram.org/api/channel): channels.leaveChannel * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization - * Login as a bot: auth.importBotAuthorization - * Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - * Logs out the user.: auth.logOut * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Manually mark dialog as unread: messages.markDialogUnread @@ -390,9 +376,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Press an inline callback button and get a callback answer from the bot: messages.getBotCallbackAnswer * Query an inline bot: messages.getInlineBotResults * Rate a call: phone.setCallRating - * Refuse or end running call: phone.discardCall * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice - * Registers a validated phone number in the system.: auth.signUp * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets * Reorder pinned dialogs: messages.reorderPinnedDialogs @@ -401,7 +385,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Report a peer for violation of telegram's Terms of Service: account.reportPeer * Report a secret chat for spam: messages.reportEncryptedSpam * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam - * Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -409,28 +392,20 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Reset all active web [telegram login](https://core.telegram.org/widgets/login) sessions: account.resetWebAuthorizations * Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](../methods/auth.requestPasswordRecovery.md).: auth.recoverPassword * Resets all notification settings from users and groups.: account.resetNotifySettings - * Resolve a @username to get peer info: contacts.resolveUsername * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm - * Returns a current state of updates.: updates.getState * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats - * Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - * Returns content of a whole file or its part.: upload.getFile * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig - * Returns data for copying authorization to another data-centre.: auth.exportAuthorization - * Returns extended user info by ID.: users.getFullUser - * Returns full chat info according to its ID.: messages.getFullChat * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate * Returns list of chats with non-default notification settings: account.getNotifyExceptions * Returns text of a text message with an invitation.: help.getInviteText * Returns the current user dialog list.: messages.getDialogs * Returns the current user's contact list.: contacts.getContacts - * Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses * Returns the list of messages by their IDs.: messages.getMessages @@ -440,8 +415,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Save a message [draft](https://core.telegram.org/api/drafts) associated to a chat.: messages.saveDraft * Save a theme: account.saveTheme * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts - * Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - * Saves a part of file for futher sending to one of the methods.: upload.saveFilePart * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs * Search for messages and peers globally: messages.searchGlobal @@ -454,7 +427,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.sendConfirmPhoneCode * Send phone call debug data to server: phone.saveCallDebug * Send scheduled messages right away: messages.sendScheduledMessages - * Send the verification code for login: auth.sendCode * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping @@ -463,22 +435,17 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Sends a custom request; for bots only: bots.sendCustomRequest * Sends a message to a chat: messages.sendMessage * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile - * Sends a request to start a secret chat to the user.: messages.requestEncryption * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted - * Set a new 2FA password: account.updatePasswordSettings * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar - * Signs in a user with a validated phone number.: auth.signIn * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot - * Start a telegram phone call: phone.requestCall * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. * Toggle contact sign up notifications: account.setContactSignUpNotification * Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds: channels.toggleSlowMode * Transfer channel ownership: channels.editCreator - * Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet * Update theme: account.updateTheme @@ -499,7 +466,40 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Vote in a [poll](../constructors/poll.md): messages.sendVote * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification - * [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + * You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + * You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + * You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + * You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + * You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + * You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + * You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + * You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + * You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + * You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + * You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + * You cannot use this method directly: messages.receivedQueue + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) * [Files](https://docs.madelineproto.xyz/docs/FILES.html) * [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats) diff --git a/old_docs/API_docs_v100/methods/README.md b/old_docs/API_docs_v100/methods/README.md index 8d7063e3..dcc5b571 100644 --- a/old_docs/API_docs_v100/methods/README.md +++ b/old_docs/API_docs_v100/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,16 +52,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -94,12 +86,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -174,10 +160,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -232,8 +214,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -276,8 +256,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -294,8 +272,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -382,12 +358,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -436,12 +406,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -458,8 +424,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -474,14 +438,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -490,20 +450,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -516,8 +466,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -534,10 +482,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -560,8 +504,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -578,24 +520,16 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -604,8 +538,6 @@ After calling this method it is necessary to reregister the current device using * Toggle contact sign up notifications: account.setContactSignUpNotification -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -642,5 +574,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v100/methods/account.getPasswordSettings.md b/old_docs/API_docs_v100/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v100/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v100/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v100/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v100/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v100/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v100/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v100/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v100/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v100/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v100/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v100/methods/auth.checkPassword.md b/old_docs/API_docs_v100/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v100/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v100/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v100/methods/auth.exportAuthorization.md b/old_docs/API_docs_v100/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v100/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v100/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v100/methods/auth.importAuthorization.md b/old_docs/API_docs_v100/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v100/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v100/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v100/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v100/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v100/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v100/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v100/methods/auth.logOut.md b/old_docs/API_docs_v100/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v100/methods/auth.logOut.md +++ b/old_docs/API_docs_v100/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v100/methods/auth.sendCode.md b/old_docs/API_docs_v100/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v100/methods/auth.sendCode.md +++ b/old_docs/API_docs_v100/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v100/methods/auth.signIn.md b/old_docs/API_docs_v100/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v100/methods/auth.signIn.md +++ b/old_docs/API_docs_v100/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v100/methods/auth.signUp.md b/old_docs/API_docs_v100/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v100/methods/auth.signUp.md +++ b/old_docs/API_docs_v100/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v100/methods/channels.getFullChannel.md b/old_docs/API_docs_v100/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v100/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v100/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v100/methods/contacts.resolveUsername.md b/old_docs/API_docs_v100/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v100/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v100/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v100/methods/messages.acceptEncryption.md b/old_docs/API_docs_v100/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v100/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v100/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v100/methods/messages.discardEncryption.md b/old_docs/API_docs_v100/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v100/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v100/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v100/methods/messages.getDhConfig.md b/old_docs/API_docs_v100/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v100/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v100/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v100/methods/messages.getFullChat.md b/old_docs/API_docs_v100/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v100/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v100/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v100/methods/messages.receivedQueue.md b/old_docs/API_docs_v100/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v100/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v100/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v100/methods/messages.requestEncryption.md b/old_docs/API_docs_v100/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v100/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v100/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v100/methods/phone.acceptCall.md b/old_docs/API_docs_v100/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v100/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v100/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v100/methods/phone.confirmCall.md b/old_docs/API_docs_v100/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v100/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v100/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v100/methods/phone.discardCall.md b/old_docs/API_docs_v100/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/old_docs/API_docs_v100/methods/phone.discardCall.md +++ b/old_docs/API_docs_v100/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v100/methods/phone.requestCall.md b/old_docs/API_docs_v100/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/old_docs/API_docs_v100/methods/phone.requestCall.md +++ b/old_docs/API_docs_v100/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v100/methods/updates.getChannelDifference.md b/old_docs/API_docs_v100/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v100/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v100/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v100/methods/updates.getDifference.md b/old_docs/API_docs_v100/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v100/methods/updates.getDifference.md +++ b/old_docs/API_docs_v100/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v100/methods/updates.getState.md b/old_docs/API_docs_v100/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v100/methods/updates.getState.md +++ b/old_docs/API_docs_v100/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v100/methods/upload.getCdnFile.md b/old_docs/API_docs_v100/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v100/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v100/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v100/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v100/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v100/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v100/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v100/methods/upload.getFile.md b/old_docs/API_docs_v100/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v100/methods/upload.getFile.md +++ b/old_docs/API_docs_v100/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v100/methods/upload.getFileHashes.md b/old_docs/API_docs_v100/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v100/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v100/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v100/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v100/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v100/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v100/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v100/methods/upload.saveFilePart.md b/old_docs/API_docs_v100/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v100/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v100/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v100/methods/users.getFullUser.md b/old_docs/API_docs_v100/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v100/methods/users.getFullUser.md +++ b/old_docs/API_docs_v100/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v102/methods/README.md b/old_docs/API_docs_v102/methods/README.md index 1fba22e0..b698192e 100644 --- a/old_docs/API_docs_v102/methods/README.md +++ b/old_docs/API_docs_v102/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation @@ -176,10 +162,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -234,8 +216,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -278,8 +258,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -296,8 +274,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -384,12 +360,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -438,12 +408,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -460,8 +426,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -476,14 +440,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -492,20 +452,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -518,8 +468,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -536,10 +484,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -562,8 +506,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -580,26 +522,18 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -610,8 +544,6 @@ After calling this method it is necessary to reregister the current device using * Transfer channel ownership: channels.editCreator -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -648,5 +580,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v102/methods/account.getPasswordSettings.md b/old_docs/API_docs_v102/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v102/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v102/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v102/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v102/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v102/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v102/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v102/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v102/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v102/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v102/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v102/methods/auth.checkPassword.md b/old_docs/API_docs_v102/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v102/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v102/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v102/methods/auth.exportAuthorization.md b/old_docs/API_docs_v102/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v102/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v102/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v102/methods/auth.importAuthorization.md b/old_docs/API_docs_v102/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v102/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v102/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v102/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v102/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v102/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v102/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v102/methods/auth.logOut.md b/old_docs/API_docs_v102/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v102/methods/auth.logOut.md +++ b/old_docs/API_docs_v102/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v102/methods/auth.sendCode.md b/old_docs/API_docs_v102/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v102/methods/auth.sendCode.md +++ b/old_docs/API_docs_v102/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v102/methods/auth.signIn.md b/old_docs/API_docs_v102/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v102/methods/auth.signIn.md +++ b/old_docs/API_docs_v102/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v102/methods/auth.signUp.md b/old_docs/API_docs_v102/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v102/methods/auth.signUp.md +++ b/old_docs/API_docs_v102/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v102/methods/channels.getFullChannel.md b/old_docs/API_docs_v102/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v102/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v102/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v102/methods/contacts.resolveUsername.md b/old_docs/API_docs_v102/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v102/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v102/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v102/methods/messages.acceptEncryption.md b/old_docs/API_docs_v102/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v102/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v102/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v102/methods/messages.discardEncryption.md b/old_docs/API_docs_v102/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v102/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v102/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v102/methods/messages.getDhConfig.md b/old_docs/API_docs_v102/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v102/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v102/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v102/methods/messages.getFullChat.md b/old_docs/API_docs_v102/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v102/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v102/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v102/methods/messages.receivedQueue.md b/old_docs/API_docs_v102/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v102/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v102/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v102/methods/messages.requestEncryption.md b/old_docs/API_docs_v102/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v102/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v102/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v102/methods/phone.acceptCall.md b/old_docs/API_docs_v102/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v102/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v102/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v102/methods/phone.confirmCall.md b/old_docs/API_docs_v102/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v102/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v102/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v102/methods/phone.discardCall.md b/old_docs/API_docs_v102/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/old_docs/API_docs_v102/methods/phone.discardCall.md +++ b/old_docs/API_docs_v102/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v102/methods/phone.requestCall.md b/old_docs/API_docs_v102/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/old_docs/API_docs_v102/methods/phone.requestCall.md +++ b/old_docs/API_docs_v102/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v102/methods/updates.getChannelDifference.md b/old_docs/API_docs_v102/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v102/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v102/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v102/methods/updates.getDifference.md b/old_docs/API_docs_v102/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v102/methods/updates.getDifference.md +++ b/old_docs/API_docs_v102/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v102/methods/updates.getState.md b/old_docs/API_docs_v102/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v102/methods/updates.getState.md +++ b/old_docs/API_docs_v102/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v102/methods/upload.getCdnFile.md b/old_docs/API_docs_v102/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v102/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v102/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v102/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v102/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v102/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v102/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v102/methods/upload.getFile.md b/old_docs/API_docs_v102/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v102/methods/upload.getFile.md +++ b/old_docs/API_docs_v102/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v102/methods/upload.getFileHashes.md b/old_docs/API_docs_v102/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v102/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v102/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v102/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v102/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v102/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v102/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v102/methods/upload.saveFilePart.md b/old_docs/API_docs_v102/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v102/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v102/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v102/methods/users.getFullUser.md b/old_docs/API_docs_v102/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v102/methods/users.getFullUser.md +++ b/old_docs/API_docs_v102/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v103/methods/README.md b/old_docs/API_docs_v103/methods/README.md index 1fba22e0..b698192e 100644 --- a/old_docs/API_docs_v103/methods/README.md +++ b/old_docs/API_docs_v103/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation @@ -176,10 +162,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -234,8 +216,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -278,8 +258,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -296,8 +274,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -384,12 +360,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -438,12 +408,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -460,8 +426,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -476,14 +440,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -492,20 +452,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -518,8 +468,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -536,10 +484,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -562,8 +506,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -580,26 +522,18 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -610,8 +544,6 @@ After calling this method it is necessary to reregister the current device using * Transfer channel ownership: channels.editCreator -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -648,5 +580,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v103/methods/account.getPasswordSettings.md b/old_docs/API_docs_v103/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v103/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v103/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v103/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v103/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v103/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v103/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v103/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v103/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v103/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v103/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v103/methods/auth.checkPassword.md b/old_docs/API_docs_v103/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v103/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v103/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v103/methods/auth.exportAuthorization.md b/old_docs/API_docs_v103/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v103/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v103/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v103/methods/auth.importAuthorization.md b/old_docs/API_docs_v103/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v103/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v103/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v103/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v103/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v103/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v103/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v103/methods/auth.logOut.md b/old_docs/API_docs_v103/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v103/methods/auth.logOut.md +++ b/old_docs/API_docs_v103/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v103/methods/auth.sendCode.md b/old_docs/API_docs_v103/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v103/methods/auth.sendCode.md +++ b/old_docs/API_docs_v103/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v103/methods/auth.signIn.md b/old_docs/API_docs_v103/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v103/methods/auth.signIn.md +++ b/old_docs/API_docs_v103/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v103/methods/auth.signUp.md b/old_docs/API_docs_v103/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v103/methods/auth.signUp.md +++ b/old_docs/API_docs_v103/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v103/methods/channels.getFullChannel.md b/old_docs/API_docs_v103/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v103/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v103/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v103/methods/contacts.resolveUsername.md b/old_docs/API_docs_v103/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v103/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v103/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v103/methods/messages.acceptEncryption.md b/old_docs/API_docs_v103/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v103/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v103/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v103/methods/messages.discardEncryption.md b/old_docs/API_docs_v103/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v103/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v103/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v103/methods/messages.getDhConfig.md b/old_docs/API_docs_v103/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v103/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v103/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v103/methods/messages.getFullChat.md b/old_docs/API_docs_v103/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v103/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v103/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v103/methods/messages.receivedQueue.md b/old_docs/API_docs_v103/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v103/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v103/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v103/methods/messages.requestEncryption.md b/old_docs/API_docs_v103/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v103/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v103/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v103/methods/phone.acceptCall.md b/old_docs/API_docs_v103/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v103/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v103/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v103/methods/phone.confirmCall.md b/old_docs/API_docs_v103/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v103/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v103/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v103/methods/phone.discardCall.md b/old_docs/API_docs_v103/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/old_docs/API_docs_v103/methods/phone.discardCall.md +++ b/old_docs/API_docs_v103/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v103/methods/phone.requestCall.md b/old_docs/API_docs_v103/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/old_docs/API_docs_v103/methods/phone.requestCall.md +++ b/old_docs/API_docs_v103/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v103/methods/updates.getChannelDifference.md b/old_docs/API_docs_v103/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v103/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v103/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v103/methods/updates.getDifference.md b/old_docs/API_docs_v103/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v103/methods/updates.getDifference.md +++ b/old_docs/API_docs_v103/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v103/methods/updates.getState.md b/old_docs/API_docs_v103/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v103/methods/updates.getState.md +++ b/old_docs/API_docs_v103/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v103/methods/upload.getCdnFile.md b/old_docs/API_docs_v103/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v103/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v103/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v103/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v103/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v103/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v103/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v103/methods/upload.getFile.md b/old_docs/API_docs_v103/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v103/methods/upload.getFile.md +++ b/old_docs/API_docs_v103/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v103/methods/upload.getFileHashes.md b/old_docs/API_docs_v103/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v103/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v103/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v103/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v103/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v103/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v103/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v103/methods/upload.saveFilePart.md b/old_docs/API_docs_v103/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v103/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v103/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v103/methods/users.getFullUser.md b/old_docs/API_docs_v103/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v103/methods/users.getFullUser.md +++ b/old_docs/API_docs_v103/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v104/methods/README.md b/old_docs/API_docs_v104/methods/README.md index 8abb23e6..43686b7c 100644 --- a/old_docs/API_docs_v104/methods/README.md +++ b/old_docs/API_docs_v104/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation @@ -176,10 +162,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -234,8 +216,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -278,8 +258,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -296,8 +274,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -384,12 +360,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -438,12 +408,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -460,8 +426,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -476,14 +440,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -492,20 +452,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -518,8 +468,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -536,10 +484,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -562,8 +506,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -580,26 +522,18 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -612,8 +546,6 @@ After calling this method it is necessary to reregister the current device using * Transfer channel ownership: channels.editCreator -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -650,5 +582,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v104/methods/account.getPasswordSettings.md b/old_docs/API_docs_v104/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v104/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v104/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v104/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v104/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v104/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v104/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v104/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v104/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v104/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v104/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v104/methods/auth.checkPassword.md b/old_docs/API_docs_v104/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v104/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v104/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v104/methods/auth.exportAuthorization.md b/old_docs/API_docs_v104/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v104/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v104/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v104/methods/auth.importAuthorization.md b/old_docs/API_docs_v104/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v104/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v104/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v104/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v104/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v104/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v104/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v104/methods/auth.logOut.md b/old_docs/API_docs_v104/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v104/methods/auth.logOut.md +++ b/old_docs/API_docs_v104/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v104/methods/auth.sendCode.md b/old_docs/API_docs_v104/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v104/methods/auth.sendCode.md +++ b/old_docs/API_docs_v104/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v104/methods/auth.signIn.md b/old_docs/API_docs_v104/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v104/methods/auth.signIn.md +++ b/old_docs/API_docs_v104/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v104/methods/auth.signUp.md b/old_docs/API_docs_v104/methods/auth.signUp.md index 720c8e4a..4d327eb6 100644 --- a/old_docs/API_docs_v104/methods/auth.signUp.md +++ b/old_docs/API_docs_v104/methods/auth.signUp.md @@ -1,22 +1,22 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v104/methods/channels.getFullChannel.md b/old_docs/API_docs_v104/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v104/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v104/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v104/methods/contacts.resolveUsername.md b/old_docs/API_docs_v104/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v104/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v104/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v104/methods/messages.acceptEncryption.md b/old_docs/API_docs_v104/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v104/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v104/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v104/methods/messages.discardEncryption.md b/old_docs/API_docs_v104/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v104/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v104/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v104/methods/messages.getDhConfig.md b/old_docs/API_docs_v104/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v104/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v104/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v104/methods/messages.getFullChat.md b/old_docs/API_docs_v104/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v104/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v104/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v104/methods/messages.receivedQueue.md b/old_docs/API_docs_v104/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v104/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v104/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v104/methods/messages.requestEncryption.md b/old_docs/API_docs_v104/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v104/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v104/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v104/methods/phone.acceptCall.md b/old_docs/API_docs_v104/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v104/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v104/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v104/methods/phone.confirmCall.md b/old_docs/API_docs_v104/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v104/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v104/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v104/methods/phone.discardCall.md b/old_docs/API_docs_v104/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/old_docs/API_docs_v104/methods/phone.discardCall.md +++ b/old_docs/API_docs_v104/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v104/methods/phone.requestCall.md b/old_docs/API_docs_v104/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/old_docs/API_docs_v104/methods/phone.requestCall.md +++ b/old_docs/API_docs_v104/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v104/methods/updates.getChannelDifference.md b/old_docs/API_docs_v104/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v104/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v104/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v104/methods/updates.getDifference.md b/old_docs/API_docs_v104/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v104/methods/updates.getDifference.md +++ b/old_docs/API_docs_v104/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v104/methods/updates.getState.md b/old_docs/API_docs_v104/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v104/methods/updates.getState.md +++ b/old_docs/API_docs_v104/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v104/methods/upload.getCdnFile.md b/old_docs/API_docs_v104/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v104/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v104/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v104/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v104/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v104/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v104/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v104/methods/upload.getFile.md b/old_docs/API_docs_v104/methods/upload.getFile.md index 6825f57b..a160e7f8 100644 --- a/old_docs/API_docs_v104/methods/upload.getFile.md +++ b/old_docs/API_docs_v104/methods/upload.getFile.md @@ -1,22 +1,22 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|precise|[Bool](../types/Bool.md) | Disable some checks on limit and offset values, useful for example to stream videos by keyframes | Optional| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|precise|[Bool](../types/Bool.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Optional| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v104/methods/upload.getFileHashes.md b/old_docs/API_docs_v104/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v104/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v104/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v104/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v104/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v104/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v104/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v104/methods/upload.saveFilePart.md b/old_docs/API_docs_v104/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v104/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v104/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v104/methods/users.getFullUser.md b/old_docs/API_docs_v104/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v104/methods/users.getFullUser.md +++ b/old_docs/API_docs_v104/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v105/methods/README.md b/old_docs/API_docs_v105/methods/README.md index 3f63c350..8e525987 100644 --- a/old_docs/API_docs_v105/methods/README.md +++ b/old_docs/API_docs_v105/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -150,8 +138,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit location of geogroup: channels.editLocation @@ -180,10 +166,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -238,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -284,8 +264,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -302,8 +280,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -398,12 +374,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -452,12 +422,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -474,8 +440,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -490,14 +454,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -506,20 +466,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -532,8 +482,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -552,10 +500,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -580,8 +524,6 @@ Use this method to respond to such pre-checkout queries. * Send scheduled messages right away: messages.sendScheduledMessages -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -598,26 +540,18 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * 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 [peer's settings](../constructors/peerSettings.md).: messages.hidePeerSettingsBar -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -630,8 +564,6 @@ After calling this method it is necessary to reregister the current device using * Transfer channel ownership: channels.editCreator -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -672,5 +604,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v105/methods/account.getPasswordSettings.md b/old_docs/API_docs_v105/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v105/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v105/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v105/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v105/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v105/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v105/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v105/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v105/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v105/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v105/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v105/methods/auth.checkPassword.md b/old_docs/API_docs_v105/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v105/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v105/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v105/methods/auth.exportAuthorization.md b/old_docs/API_docs_v105/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v105/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v105/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v105/methods/auth.importAuthorization.md b/old_docs/API_docs_v105/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v105/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v105/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v105/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v105/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v105/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v105/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v105/methods/auth.logOut.md b/old_docs/API_docs_v105/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v105/methods/auth.logOut.md +++ b/old_docs/API_docs_v105/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v105/methods/auth.sendCode.md b/old_docs/API_docs_v105/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v105/methods/auth.sendCode.md +++ b/old_docs/API_docs_v105/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v105/methods/auth.signIn.md b/old_docs/API_docs_v105/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v105/methods/auth.signIn.md +++ b/old_docs/API_docs_v105/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v105/methods/auth.signUp.md b/old_docs/API_docs_v105/methods/auth.signUp.md index 720c8e4a..4d327eb6 100644 --- a/old_docs/API_docs_v105/methods/auth.signUp.md +++ b/old_docs/API_docs_v105/methods/auth.signUp.md @@ -1,22 +1,22 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v105/methods/channels.getFullChannel.md b/old_docs/API_docs_v105/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v105/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v105/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v105/methods/contacts.resolveUsername.md b/old_docs/API_docs_v105/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v105/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v105/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v105/methods/messages.acceptEncryption.md b/old_docs/API_docs_v105/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v105/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v105/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v105/methods/messages.discardEncryption.md b/old_docs/API_docs_v105/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v105/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v105/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v105/methods/messages.getDhConfig.md b/old_docs/API_docs_v105/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v105/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v105/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v105/methods/messages.getFullChat.md b/old_docs/API_docs_v105/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v105/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v105/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v105/methods/messages.receivedQueue.md b/old_docs/API_docs_v105/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v105/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v105/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v105/methods/messages.requestEncryption.md b/old_docs/API_docs_v105/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v105/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v105/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v105/methods/phone.acceptCall.md b/old_docs/API_docs_v105/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v105/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v105/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v105/methods/phone.confirmCall.md b/old_docs/API_docs_v105/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v105/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v105/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v105/methods/phone.discardCall.md b/old_docs/API_docs_v105/methods/phone.discardCall.md index 18480d2a..b4fec97a 100644 --- a/old_docs/API_docs_v105/methods/phone.discardCall.md +++ b/old_docs/API_docs_v105/methods/phone.discardCall.md @@ -1,23 +1,23 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether this is a video call | Optional| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v105/methods/phone.requestCall.md b/old_docs/API_docs_v105/methods/phone.requestCall.md index 51c47a58..e3894214 100644 --- a/old_docs/API_docs_v105/methods/phone.requestCall.md +++ b/old_docs/API_docs_v105/methods/phone.requestCall.md @@ -1,22 +1,22 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|video|[Bool](../types/Bool.md) | Whether to start a video call | Optional| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|video|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v105/methods/updates.getChannelDifference.md b/old_docs/API_docs_v105/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v105/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v105/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v105/methods/updates.getDifference.md b/old_docs/API_docs_v105/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v105/methods/updates.getDifference.md +++ b/old_docs/API_docs_v105/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v105/methods/updates.getState.md b/old_docs/API_docs_v105/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v105/methods/updates.getState.md +++ b/old_docs/API_docs_v105/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v105/methods/upload.getCdnFile.md b/old_docs/API_docs_v105/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v105/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v105/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v105/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v105/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v105/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v105/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v105/methods/upload.getFile.md b/old_docs/API_docs_v105/methods/upload.getFile.md index 6825f57b..a160e7f8 100644 --- a/old_docs/API_docs_v105/methods/upload.getFile.md +++ b/old_docs/API_docs_v105/methods/upload.getFile.md @@ -1,22 +1,22 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|precise|[Bool](../types/Bool.md) | Disable some checks on limit and offset values, useful for example to stream videos by keyframes | Optional| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|precise|[Bool](../types/Bool.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Optional| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v105/methods/upload.getFileHashes.md b/old_docs/API_docs_v105/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v105/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v105/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v105/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v105/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v105/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v105/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v105/methods/upload.saveFilePart.md b/old_docs/API_docs_v105/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v105/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v105/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v105/methods/users.getFullUser.md b/old_docs/API_docs_v105/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v105/methods/users.getFullUser.md +++ b/old_docs/API_docs_v105/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md index 1225e824..46e85461 100644 --- a/old_docs/API_docs_v18/methods/README.md +++ b/old_docs/API_docs_v18/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Changes chat photo and sends a service message on it: messages.editChatPhoto @@ -48,12 +42,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check if this phone number is registered on telegram: auth.checkPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Creates a new chat.: messages.createChat * Delete a contact: contacts.deleteContact @@ -80,8 +70,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get suggested contacts: contacts.getSuggested * Gets back found messages: messages.search @@ -106,10 +94,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Marks message history as read.: messages.readHistory * Marks message history within a secret chat as read.: messages.readEncryptedHistory @@ -118,32 +102,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Resets all notification settings from users and groups.: account.resetNotifySettings -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -166,10 +136,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Send SMS verification code: auth.sendSms @@ -178,8 +144,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -190,14 +154,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Signs in a user with a validated phone number.: auth.signIn - * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations @@ -210,3 +170,41 @@ After calling this method it is necessary to reregister the current device using * Validates a username and checks availability.: account.checkUsername +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + diff --git a/old_docs/API_docs_v18/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v18/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v18/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v18/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v18/methods/auth.exportAuthorization.md b/old_docs/API_docs_v18/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v18/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v18/methods/auth.importAuthorization.md b/old_docs/API_docs_v18/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v18/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v18/methods/auth.logOut.md b/old_docs/API_docs_v18/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v18/methods/auth.logOut.md +++ b/old_docs/API_docs_v18/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v18/methods/auth.sendCode.md b/old_docs/API_docs_v18/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v18/methods/auth.sendCode.md +++ b/old_docs/API_docs_v18/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v18/methods/auth.signIn.md b/old_docs/API_docs_v18/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v18/methods/auth.signIn.md +++ b/old_docs/API_docs_v18/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v18/methods/auth.signUp.md b/old_docs/API_docs_v18/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v18/methods/auth.signUp.md +++ b/old_docs/API_docs_v18/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v18/methods/messages.acceptEncryption.md b/old_docs/API_docs_v18/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v18/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v18/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v18/methods/messages.discardEncryption.md b/old_docs/API_docs_v18/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v18/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v18/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v18/methods/messages.getDhConfig.md b/old_docs/API_docs_v18/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v18/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v18/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v18/methods/messages.getFullChat.md b/old_docs/API_docs_v18/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v18/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v18/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v18/methods/messages.receivedQueue.md b/old_docs/API_docs_v18/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v18/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v18/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v18/methods/messages.requestEncryption.md b/old_docs/API_docs_v18/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v18/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v18/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v18/methods/updates.getDifference.md b/old_docs/API_docs_v18/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v18/methods/updates.getDifference.md +++ b/old_docs/API_docs_v18/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v18/methods/updates.getState.md b/old_docs/API_docs_v18/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v18/methods/updates.getState.md +++ b/old_docs/API_docs_v18/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v18/methods/upload.getFile.md b/old_docs/API_docs_v18/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v18/methods/upload.getFile.md +++ b/old_docs/API_docs_v18/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v18/methods/upload.saveFilePart.md b/old_docs/API_docs_v18/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v18/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v18/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v18/methods/users.getFullUser.md b/old_docs/API_docs_v18/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v18/methods/users.getFullUser.md +++ b/old_docs/API_docs_v18/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md index 2113ff1e..0396b733 100644 --- a/old_docs/API_docs_v23/methods/README.md +++ b/old_docs/API_docs_v23/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -52,12 +46,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check if this phone number is registered on telegram: auth.checkPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Creates a new chat.: messages.createChat * Delete a contact: contacts.deleteContact @@ -90,8 +80,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get privacy settings of current account: account.getPrivacy * Get stickers by emoji: messages.getStickers @@ -120,10 +108,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Marks message history as read.: messages.readHistory * Marks message history within a secret chat as read.: messages.readEncryptedHistory @@ -132,36 +116,20 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Report a peer for violation of telegram's Terms of Service: account.reportPeer * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -184,10 +152,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Send SMS verification code: auth.sendSms @@ -196,8 +160,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -208,16 +170,12 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations @@ -234,3 +192,43 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + diff --git a/old_docs/API_docs_v23/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v23/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v23/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v23/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v23/methods/auth.exportAuthorization.md b/old_docs/API_docs_v23/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v23/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v23/methods/auth.importAuthorization.md b/old_docs/API_docs_v23/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v23/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v23/methods/auth.logOut.md b/old_docs/API_docs_v23/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v23/methods/auth.logOut.md +++ b/old_docs/API_docs_v23/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v23/methods/auth.sendCode.md b/old_docs/API_docs_v23/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v23/methods/auth.sendCode.md +++ b/old_docs/API_docs_v23/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v23/methods/auth.signIn.md b/old_docs/API_docs_v23/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v23/methods/auth.signIn.md +++ b/old_docs/API_docs_v23/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v23/methods/auth.signUp.md b/old_docs/API_docs_v23/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v23/methods/auth.signUp.md +++ b/old_docs/API_docs_v23/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v23/methods/contacts.resolveUsername.md b/old_docs/API_docs_v23/methods/contacts.resolveUsername.md index a9a8ba02..170258b2 100644 --- a/old_docs/API_docs_v23/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v23/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [User](../types/User.md) diff --git a/old_docs/API_docs_v23/methods/messages.acceptEncryption.md b/old_docs/API_docs_v23/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v23/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v23/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v23/methods/messages.discardEncryption.md b/old_docs/API_docs_v23/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v23/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v23/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v23/methods/messages.getDhConfig.md b/old_docs/API_docs_v23/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v23/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v23/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v23/methods/messages.getFullChat.md b/old_docs/API_docs_v23/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v23/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v23/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v23/methods/messages.receivedQueue.md b/old_docs/API_docs_v23/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v23/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v23/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v23/methods/messages.requestEncryption.md b/old_docs/API_docs_v23/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v23/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v23/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v23/methods/updates.getDifference.md b/old_docs/API_docs_v23/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v23/methods/updates.getDifference.md +++ b/old_docs/API_docs_v23/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v23/methods/updates.getState.md b/old_docs/API_docs_v23/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v23/methods/updates.getState.md +++ b/old_docs/API_docs_v23/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v23/methods/upload.getFile.md b/old_docs/API_docs_v23/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v23/methods/upload.getFile.md +++ b/old_docs/API_docs_v23/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v23/methods/upload.saveFilePart.md b/old_docs/API_docs_v23/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v23/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v23/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v23/methods/users.getFullUser.md b/old_docs/API_docs_v23/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v23/methods/users.getFullUser.md +++ b/old_docs/API_docs_v23/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md index a5b872d2..8364cbf9 100644 --- a/old_docs/API_docs_v25/methods/README.md +++ b/old_docs/API_docs_v25/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -52,12 +46,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check if this phone number is registered on telegram: auth.checkPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create geochat: geochats.createGeoChat * Creates a new chat.: messages.createChat @@ -102,8 +92,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get nearby geochats: geochats.getLocated -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get privacy settings of current account: account.getPrivacy * Get recent geochats: geochats.getRecents @@ -136,10 +124,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Join a geochat: geochats.checkin -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Marks message history as read.: messages.readHistory * Marks message history within a secret chat as read.: messages.readEncryptedHistory @@ -150,32 +134,16 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -198,10 +166,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search messages in geocha: geochats.search @@ -216,8 +180,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send message to geochat: geochats.sendMessage -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send typing notification to geochat: geochats.setTyping @@ -230,8 +192,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted @@ -240,14 +200,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Updates current user profile photo.: photos.uploadProfilePhoto * Updates online user status.: account.updateStatus @@ -260,3 +216,45 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + diff --git a/old_docs/API_docs_v25/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v25/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v25/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v25/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v25/methods/auth.checkPassword.md b/old_docs/API_docs_v25/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v25/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v25/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v25/methods/auth.exportAuthorization.md b/old_docs/API_docs_v25/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v25/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v25/methods/auth.importAuthorization.md b/old_docs/API_docs_v25/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v25/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v25/methods/auth.logOut.md b/old_docs/API_docs_v25/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v25/methods/auth.logOut.md +++ b/old_docs/API_docs_v25/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v25/methods/auth.sendCode.md b/old_docs/API_docs_v25/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v25/methods/auth.sendCode.md +++ b/old_docs/API_docs_v25/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v25/methods/auth.signIn.md b/old_docs/API_docs_v25/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v25/methods/auth.signIn.md +++ b/old_docs/API_docs_v25/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v25/methods/auth.signUp.md b/old_docs/API_docs_v25/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v25/methods/auth.signUp.md +++ b/old_docs/API_docs_v25/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v25/methods/contacts.resolveUsername.md b/old_docs/API_docs_v25/methods/contacts.resolveUsername.md index a9a8ba02..170258b2 100644 --- a/old_docs/API_docs_v25/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v25/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [User](../types/User.md) diff --git a/old_docs/API_docs_v25/methods/messages.acceptEncryption.md b/old_docs/API_docs_v25/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v25/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v25/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v25/methods/messages.discardEncryption.md b/old_docs/API_docs_v25/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v25/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v25/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v25/methods/messages.getDhConfig.md b/old_docs/API_docs_v25/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v25/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v25/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v25/methods/messages.getFullChat.md b/old_docs/API_docs_v25/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v25/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v25/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v25/methods/messages.receivedQueue.md b/old_docs/API_docs_v25/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v25/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v25/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v25/methods/messages.requestEncryption.md b/old_docs/API_docs_v25/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v25/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v25/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v25/methods/updates.getDifference.md b/old_docs/API_docs_v25/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v25/methods/updates.getDifference.md +++ b/old_docs/API_docs_v25/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v25/methods/updates.getState.md b/old_docs/API_docs_v25/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v25/methods/updates.getState.md +++ b/old_docs/API_docs_v25/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v25/methods/upload.getFile.md b/old_docs/API_docs_v25/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v25/methods/upload.getFile.md +++ b/old_docs/API_docs_v25/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v25/methods/upload.saveFilePart.md b/old_docs/API_docs_v25/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v25/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v25/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v25/methods/users.getFullUser.md b/old_docs/API_docs_v25/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v25/methods/users.getFullUser.md +++ b/old_docs/API_docs_v25/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md index 461833f9..4d2d36eb 100644 --- a/old_docs/API_docs_v27/methods/README.md +++ b/old_docs/API_docs_v27/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -52,12 +46,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check if this phone number is registered on telegram: auth.checkPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create geochat: geochats.createGeoChat * Creates a new chat.: messages.createChat @@ -104,14 +94,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get nearby geochats: geochats.getLocated -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent geochats: geochats.getRecents * Get stickers by emoji: messages.getStickers @@ -144,10 +130,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Marks message history as read.: messages.readHistory * Marks message history within a secret chat as read.: messages.readEncryptedHistory @@ -158,36 +140,20 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](../methods/auth.requestPasswordRecovery.md).: auth.recoverPassword * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -210,10 +176,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search messages in geocha: geochats.search @@ -228,8 +190,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send message to geochat: geochats.sendMessage -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send typing notification to geochat: geochats.setTyping @@ -242,24 +202,16 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Updates current user profile photo.: photos.uploadProfilePhoto * Updates online user status.: account.updateStatus @@ -272,3 +224,49 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v27/methods/account.getPasswordSettings.md b/old_docs/API_docs_v27/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v27/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v27/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v27/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v27/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v27/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v27/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v27/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v27/methods/auth.checkPassword.md b/old_docs/API_docs_v27/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v27/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v27/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v27/methods/auth.exportAuthorization.md b/old_docs/API_docs_v27/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v27/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v27/methods/auth.importAuthorization.md b/old_docs/API_docs_v27/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v27/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v27/methods/auth.logOut.md b/old_docs/API_docs_v27/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v27/methods/auth.logOut.md +++ b/old_docs/API_docs_v27/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v27/methods/auth.sendCode.md b/old_docs/API_docs_v27/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v27/methods/auth.sendCode.md +++ b/old_docs/API_docs_v27/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v27/methods/auth.signIn.md b/old_docs/API_docs_v27/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v27/methods/auth.signIn.md +++ b/old_docs/API_docs_v27/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v27/methods/auth.signUp.md b/old_docs/API_docs_v27/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v27/methods/auth.signUp.md +++ b/old_docs/API_docs_v27/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v27/methods/contacts.resolveUsername.md b/old_docs/API_docs_v27/methods/contacts.resolveUsername.md index a9a8ba02..170258b2 100644 --- a/old_docs/API_docs_v27/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v27/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [User](../types/User.md) diff --git a/old_docs/API_docs_v27/methods/messages.acceptEncryption.md b/old_docs/API_docs_v27/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v27/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v27/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v27/methods/messages.discardEncryption.md b/old_docs/API_docs_v27/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v27/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v27/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v27/methods/messages.getDhConfig.md b/old_docs/API_docs_v27/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v27/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v27/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v27/methods/messages.getFullChat.md b/old_docs/API_docs_v27/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v27/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v27/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v27/methods/messages.receivedQueue.md b/old_docs/API_docs_v27/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v27/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v27/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v27/methods/messages.requestEncryption.md b/old_docs/API_docs_v27/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v27/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v27/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v27/methods/updates.getDifference.md b/old_docs/API_docs_v27/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v27/methods/updates.getDifference.md +++ b/old_docs/API_docs_v27/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v27/methods/updates.getState.md b/old_docs/API_docs_v27/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v27/methods/updates.getState.md +++ b/old_docs/API_docs_v27/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v27/methods/upload.getFile.md b/old_docs/API_docs_v27/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v27/methods/upload.getFile.md +++ b/old_docs/API_docs_v27/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v27/methods/upload.saveFilePart.md b/old_docs/API_docs_v27/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v27/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v27/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v27/methods/users.getFullUser.md b/old_docs/API_docs_v27/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v27/methods/users.getFullUser.md +++ b/old_docs/API_docs_v27/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md index 3dbffef0..7b6118d5 100644 --- a/old_docs/API_docs_v33/methods/README.md +++ b/old_docs/API_docs_v33/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -54,12 +48,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create geochat: geochats.createGeoChat * Creates a new chat.: messages.createChat @@ -112,14 +102,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get nearby geochats: geochats.getLocated -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent geochats: geochats.getRecents * Get stickers by emoji: messages.getStickers @@ -158,12 +144,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Marks message history as read.: messages.readHistory * Marks message history within a secret chat as read.: messages.readEncryptedHistory @@ -174,36 +154,20 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](../methods/auth.requestPasswordRecovery.md).: auth.recoverPassword * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -226,10 +190,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search messages in geocha: geochats.search @@ -244,8 +204,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send message to geochat: geochats.sendMessage -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send typing notification to geochat: geochats.setTyping @@ -258,26 +216,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Uninstall a stickerset: messages.uninstallStickerSet * Updates current user profile photo.: photos.uploadProfilePhoto @@ -292,3 +242,51 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v33/methods/account.getPasswordSettings.md b/old_docs/API_docs_v33/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v33/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v33/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v33/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v33/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v33/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v33/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v33/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v33/methods/auth.checkPassword.md b/old_docs/API_docs_v33/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v33/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v33/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v33/methods/auth.exportAuthorization.md b/old_docs/API_docs_v33/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v33/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v33/methods/auth.importAuthorization.md b/old_docs/API_docs_v33/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v33/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v33/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v33/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v33/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v33/methods/auth.logOut.md b/old_docs/API_docs_v33/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v33/methods/auth.logOut.md +++ b/old_docs/API_docs_v33/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v33/methods/auth.sendCode.md b/old_docs/API_docs_v33/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v33/methods/auth.sendCode.md +++ b/old_docs/API_docs_v33/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v33/methods/auth.signIn.md b/old_docs/API_docs_v33/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v33/methods/auth.signIn.md +++ b/old_docs/API_docs_v33/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v33/methods/auth.signUp.md b/old_docs/API_docs_v33/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v33/methods/auth.signUp.md +++ b/old_docs/API_docs_v33/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v33/methods/contacts.resolveUsername.md b/old_docs/API_docs_v33/methods/contacts.resolveUsername.md index a9a8ba02..170258b2 100644 --- a/old_docs/API_docs_v33/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v33/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [User](../types/User.md) diff --git a/old_docs/API_docs_v33/methods/messages.acceptEncryption.md b/old_docs/API_docs_v33/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v33/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v33/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v33/methods/messages.discardEncryption.md b/old_docs/API_docs_v33/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v33/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v33/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v33/methods/messages.getDhConfig.md b/old_docs/API_docs_v33/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v33/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v33/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v33/methods/messages.getFullChat.md b/old_docs/API_docs_v33/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v33/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v33/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v33/methods/messages.receivedQueue.md b/old_docs/API_docs_v33/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v33/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v33/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v33/methods/messages.requestEncryption.md b/old_docs/API_docs_v33/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v33/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v33/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v33/methods/updates.getDifference.md b/old_docs/API_docs_v33/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v33/methods/updates.getDifference.md +++ b/old_docs/API_docs_v33/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v33/methods/updates.getState.md b/old_docs/API_docs_v33/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v33/methods/updates.getState.md +++ b/old_docs/API_docs_v33/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v33/methods/upload.getFile.md b/old_docs/API_docs_v33/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v33/methods/upload.getFile.md +++ b/old_docs/API_docs_v33/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v33/methods/upload.saveFilePart.md b/old_docs/API_docs_v33/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v33/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v33/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v33/methods/users.getFullUser.md b/old_docs/API_docs_v33/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v33/methods/users.getFullUser.md +++ b/old_docs/API_docs_v33/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md index fc30812f..12c5cdc9 100644 --- a/old_docs/API_docs_v38/methods/README.md +++ b/old_docs/API_docs_v38/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -60,12 +54,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -124,8 +114,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -136,14 +124,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested @@ -188,12 +172,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory * Marks message history as read.: messages.readHistory @@ -208,8 +186,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam @@ -220,28 +196,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -252,8 +214,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -266,10 +226,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Send SMS verification code: auth.sendSms @@ -278,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -290,26 +244,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Uninstall a stickerset: messages.uninstallStickerSet * Updates current user profile photo.: photos.uploadProfilePhoto @@ -324,3 +270,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v38/methods/account.getPasswordSettings.md b/old_docs/API_docs_v38/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v38/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v38/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v38/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v38/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v38/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v38/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v38/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v38/methods/auth.checkPassword.md b/old_docs/API_docs_v38/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v38/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v38/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v38/methods/auth.exportAuthorization.md b/old_docs/API_docs_v38/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v38/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v38/methods/auth.importAuthorization.md b/old_docs/API_docs_v38/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v38/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v38/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v38/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v38/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v38/methods/auth.logOut.md b/old_docs/API_docs_v38/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v38/methods/auth.logOut.md +++ b/old_docs/API_docs_v38/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v38/methods/auth.sendCode.md b/old_docs/API_docs_v38/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v38/methods/auth.sendCode.md +++ b/old_docs/API_docs_v38/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v38/methods/auth.signIn.md b/old_docs/API_docs_v38/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v38/methods/auth.signIn.md +++ b/old_docs/API_docs_v38/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v38/methods/auth.signUp.md b/old_docs/API_docs_v38/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v38/methods/auth.signUp.md +++ b/old_docs/API_docs_v38/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v38/methods/channels.getFullChannel.md b/old_docs/API_docs_v38/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v38/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v38/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v38/methods/contacts.resolveUsername.md b/old_docs/API_docs_v38/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v38/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v38/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v38/methods/messages.acceptEncryption.md b/old_docs/API_docs_v38/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v38/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v38/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v38/methods/messages.discardEncryption.md b/old_docs/API_docs_v38/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v38/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v38/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v38/methods/messages.getDhConfig.md b/old_docs/API_docs_v38/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v38/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v38/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v38/methods/messages.getFullChat.md b/old_docs/API_docs_v38/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v38/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v38/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v38/methods/messages.receivedQueue.md b/old_docs/API_docs_v38/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v38/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v38/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v38/methods/messages.requestEncryption.md b/old_docs/API_docs_v38/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v38/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v38/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v38/methods/updates.getChannelDifference.md b/old_docs/API_docs_v38/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v38/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v38/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v38/methods/updates.getDifference.md b/old_docs/API_docs_v38/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v38/methods/updates.getDifference.md +++ b/old_docs/API_docs_v38/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v38/methods/updates.getState.md b/old_docs/API_docs_v38/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v38/methods/updates.getState.md +++ b/old_docs/API_docs_v38/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v38/methods/upload.getFile.md b/old_docs/API_docs_v38/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v38/methods/upload.getFile.md +++ b/old_docs/API_docs_v38/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v38/methods/upload.saveFilePart.md b/old_docs/API_docs_v38/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v38/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v38/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v38/methods/users.getFullUser.md b/old_docs/API_docs_v38/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v38/methods/users.getFullUser.md +++ b/old_docs/API_docs_v38/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md index 27cc5570..39d0c0e9 100644 --- a/old_docs/API_docs_v40/methods/README.md +++ b/old_docs/API_docs_v40/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -54,12 +48,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create channel: messages.createChannel * Creates a new chat.: messages.createChat @@ -108,14 +98,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested @@ -150,12 +136,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Mark channel/supergroup history as read: messages.readChannelHistory * Marks message history as read.: messages.readHistory @@ -168,36 +148,20 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](../methods/auth.requestPasswordRecovery.md).: auth.recoverPassword * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -208,8 +172,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -222,10 +184,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Send SMS verification code: auth.sendSms @@ -234,8 +192,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -246,26 +202,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Uninstall a stickerset: messages.uninstallStickerSet * Updates current user profile photo.: photos.uploadProfilePhoto @@ -280,3 +228,53 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v40/methods/account.getPasswordSettings.md b/old_docs/API_docs_v40/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v40/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v40/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v40/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v40/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v40/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v40/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v40/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v40/methods/auth.checkPassword.md b/old_docs/API_docs_v40/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v40/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v40/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v40/methods/auth.exportAuthorization.md b/old_docs/API_docs_v40/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v40/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v40/methods/auth.importAuthorization.md b/old_docs/API_docs_v40/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v40/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v40/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v40/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v40/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v40/methods/auth.logOut.md b/old_docs/API_docs_v40/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v40/methods/auth.logOut.md +++ b/old_docs/API_docs_v40/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v40/methods/auth.sendCode.md b/old_docs/API_docs_v40/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v40/methods/auth.sendCode.md +++ b/old_docs/API_docs_v40/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v40/methods/auth.signIn.md b/old_docs/API_docs_v40/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v40/methods/auth.signIn.md +++ b/old_docs/API_docs_v40/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v40/methods/auth.signUp.md b/old_docs/API_docs_v40/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v40/methods/auth.signUp.md +++ b/old_docs/API_docs_v40/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v40/methods/contacts.resolveUsername.md b/old_docs/API_docs_v40/methods/contacts.resolveUsername.md index a9a8ba02..170258b2 100644 --- a/old_docs/API_docs_v40/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v40/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [User](../types/User.md) diff --git a/old_docs/API_docs_v40/methods/messages.acceptEncryption.md b/old_docs/API_docs_v40/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v40/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v40/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v40/methods/messages.discardEncryption.md b/old_docs/API_docs_v40/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v40/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v40/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v40/methods/messages.getDhConfig.md b/old_docs/API_docs_v40/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v40/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v40/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v40/methods/messages.getFullChat.md b/old_docs/API_docs_v40/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v40/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v40/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v40/methods/messages.receivedQueue.md b/old_docs/API_docs_v40/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v40/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v40/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v40/methods/messages.requestEncryption.md b/old_docs/API_docs_v40/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v40/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v40/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v40/methods/updates.getChannelDifference.md b/old_docs/API_docs_v40/methods/updates.getChannelDifference.md index 7299eff3..62203fd1 100644 --- a/old_docs/API_docs_v40/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v40/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| |peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v40/methods/updates.getDifference.md b/old_docs/API_docs_v40/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v40/methods/updates.getDifference.md +++ b/old_docs/API_docs_v40/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v40/methods/updates.getState.md b/old_docs/API_docs_v40/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v40/methods/updates.getState.md +++ b/old_docs/API_docs_v40/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v40/methods/upload.getFile.md b/old_docs/API_docs_v40/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v40/methods/upload.getFile.md +++ b/old_docs/API_docs_v40/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v40/methods/upload.saveFilePart.md b/old_docs/API_docs_v40/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v40/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v40/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v40/methods/users.getFullUser.md b/old_docs/API_docs_v40/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v40/methods/users.getFullUser.md +++ b/old_docs/API_docs_v40/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md index 57bd5f38..caebbce5 100644 --- a/old_docs/API_docs_v41/methods/README.md +++ b/old_docs/API_docs_v41/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -60,12 +54,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -128,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -140,14 +128,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested @@ -192,12 +176,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -214,8 +192,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam @@ -226,28 +202,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -258,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -272,10 +232,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for messages and peers globally: messages.searchGlobal @@ -286,8 +242,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -298,26 +252,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -334,3 +280,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v41/methods/account.getPasswordSettings.md b/old_docs/API_docs_v41/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v41/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v41/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v41/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v41/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v41/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v41/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v41/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v41/methods/auth.checkPassword.md b/old_docs/API_docs_v41/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v41/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v41/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v41/methods/auth.exportAuthorization.md b/old_docs/API_docs_v41/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v41/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v41/methods/auth.importAuthorization.md b/old_docs/API_docs_v41/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v41/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v41/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v41/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v41/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v41/methods/auth.logOut.md b/old_docs/API_docs_v41/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v41/methods/auth.logOut.md +++ b/old_docs/API_docs_v41/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v41/methods/auth.sendCode.md b/old_docs/API_docs_v41/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v41/methods/auth.sendCode.md +++ b/old_docs/API_docs_v41/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v41/methods/auth.signIn.md b/old_docs/API_docs_v41/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v41/methods/auth.signIn.md +++ b/old_docs/API_docs_v41/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v41/methods/auth.signUp.md b/old_docs/API_docs_v41/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v41/methods/auth.signUp.md +++ b/old_docs/API_docs_v41/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v41/methods/channels.getFullChannel.md b/old_docs/API_docs_v41/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v41/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v41/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v41/methods/contacts.resolveUsername.md b/old_docs/API_docs_v41/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v41/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v41/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v41/methods/messages.acceptEncryption.md b/old_docs/API_docs_v41/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v41/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v41/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v41/methods/messages.discardEncryption.md b/old_docs/API_docs_v41/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v41/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v41/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v41/methods/messages.getDhConfig.md b/old_docs/API_docs_v41/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v41/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v41/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v41/methods/messages.getFullChat.md b/old_docs/API_docs_v41/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v41/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v41/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v41/methods/messages.receivedQueue.md b/old_docs/API_docs_v41/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v41/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v41/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v41/methods/messages.requestEncryption.md b/old_docs/API_docs_v41/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v41/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v41/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v41/methods/updates.getChannelDifference.md b/old_docs/API_docs_v41/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v41/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v41/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v41/methods/updates.getDifference.md b/old_docs/API_docs_v41/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v41/methods/updates.getDifference.md +++ b/old_docs/API_docs_v41/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v41/methods/updates.getState.md b/old_docs/API_docs_v41/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v41/methods/updates.getState.md +++ b/old_docs/API_docs_v41/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v41/methods/upload.getFile.md b/old_docs/API_docs_v41/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v41/methods/upload.getFile.md +++ b/old_docs/API_docs_v41/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v41/methods/upload.saveFilePart.md b/old_docs/API_docs_v41/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v41/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v41/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v41/methods/users.getFullUser.md b/old_docs/API_docs_v41/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v41/methods/users.getFullUser.md +++ b/old_docs/API_docs_v41/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md index d7a3e0d2..feeddd35 100644 --- a/old_docs/API_docs_v42/methods/README.md +++ b/old_docs/API_docs_v42/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -60,12 +54,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -126,8 +116,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -138,14 +126,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested @@ -190,12 +174,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -212,8 +190,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam @@ -224,28 +200,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -256,8 +218,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -270,10 +230,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for messages and peers globally: messages.searchGlobal @@ -284,8 +240,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -296,26 +250,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -332,3 +278,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v42/methods/account.getPasswordSettings.md b/old_docs/API_docs_v42/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v42/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v42/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v42/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v42/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v42/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v42/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v42/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v42/methods/auth.checkPassword.md b/old_docs/API_docs_v42/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v42/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v42/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v42/methods/auth.exportAuthorization.md b/old_docs/API_docs_v42/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v42/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v42/methods/auth.importAuthorization.md b/old_docs/API_docs_v42/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v42/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v42/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v42/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v42/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v42/methods/auth.logOut.md b/old_docs/API_docs_v42/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v42/methods/auth.logOut.md +++ b/old_docs/API_docs_v42/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v42/methods/auth.sendCode.md b/old_docs/API_docs_v42/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v42/methods/auth.sendCode.md +++ b/old_docs/API_docs_v42/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v42/methods/auth.signIn.md b/old_docs/API_docs_v42/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v42/methods/auth.signIn.md +++ b/old_docs/API_docs_v42/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v42/methods/auth.signUp.md b/old_docs/API_docs_v42/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v42/methods/auth.signUp.md +++ b/old_docs/API_docs_v42/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v42/methods/channels.getFullChannel.md b/old_docs/API_docs_v42/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v42/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v42/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v42/methods/contacts.resolveUsername.md b/old_docs/API_docs_v42/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v42/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v42/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v42/methods/messages.acceptEncryption.md b/old_docs/API_docs_v42/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v42/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v42/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v42/methods/messages.discardEncryption.md b/old_docs/API_docs_v42/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v42/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v42/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v42/methods/messages.getDhConfig.md b/old_docs/API_docs_v42/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v42/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v42/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v42/methods/messages.getFullChat.md b/old_docs/API_docs_v42/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v42/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v42/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v42/methods/messages.receivedQueue.md b/old_docs/API_docs_v42/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v42/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v42/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v42/methods/messages.requestEncryption.md b/old_docs/API_docs_v42/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v42/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v42/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v42/methods/updates.getChannelDifference.md b/old_docs/API_docs_v42/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v42/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v42/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v42/methods/updates.getDifference.md b/old_docs/API_docs_v42/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v42/methods/updates.getDifference.md +++ b/old_docs/API_docs_v42/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v42/methods/updates.getState.md b/old_docs/API_docs_v42/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v42/methods/updates.getState.md +++ b/old_docs/API_docs_v42/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v42/methods/upload.getFile.md b/old_docs/API_docs_v42/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v42/methods/upload.getFile.md +++ b/old_docs/API_docs_v42/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v42/methods/upload.saveFilePart.md b/old_docs/API_docs_v42/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v42/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v42/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v42/methods/users.getFullUser.md b/old_docs/API_docs_v42/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v42/methods/users.getFullUser.md +++ b/old_docs/API_docs_v42/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md index 37fcf788..e455d0ca 100644 --- a/old_docs/API_docs_v44/methods/README.md +++ b/old_docs/API_docs_v44/methods/README.md @@ -34,12 +34,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Adds the user to the blacklist.: contacts.block -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -60,12 +54,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -128,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -140,14 +128,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested @@ -194,12 +178,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -216,8 +194,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -232,28 +208,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -264,8 +226,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -278,10 +238,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -294,8 +250,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a message to all users in the chat list: messages.sendBroadcast -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -306,26 +260,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -342,3 +288,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v44/methods/account.getPasswordSettings.md b/old_docs/API_docs_v44/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v44/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v44/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v44/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v44/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v44/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v44/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v44/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v44/methods/auth.checkPassword.md b/old_docs/API_docs_v44/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v44/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v44/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v44/methods/auth.exportAuthorization.md b/old_docs/API_docs_v44/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v44/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v44/methods/auth.importAuthorization.md b/old_docs/API_docs_v44/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v44/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v44/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v44/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v44/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v44/methods/auth.logOut.md b/old_docs/API_docs_v44/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v44/methods/auth.logOut.md +++ b/old_docs/API_docs_v44/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v44/methods/auth.sendCode.md b/old_docs/API_docs_v44/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v44/methods/auth.sendCode.md +++ b/old_docs/API_docs_v44/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v44/methods/auth.signIn.md b/old_docs/API_docs_v44/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v44/methods/auth.signIn.md +++ b/old_docs/API_docs_v44/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v44/methods/auth.signUp.md b/old_docs/API_docs_v44/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v44/methods/auth.signUp.md +++ b/old_docs/API_docs_v44/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v44/methods/channels.getFullChannel.md b/old_docs/API_docs_v44/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v44/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v44/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v44/methods/contacts.resolveUsername.md b/old_docs/API_docs_v44/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v44/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v44/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v44/methods/messages.acceptEncryption.md b/old_docs/API_docs_v44/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v44/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v44/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v44/methods/messages.discardEncryption.md b/old_docs/API_docs_v44/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v44/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v44/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v44/methods/messages.getDhConfig.md b/old_docs/API_docs_v44/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v44/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v44/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v44/methods/messages.getFullChat.md b/old_docs/API_docs_v44/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v44/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v44/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v44/methods/messages.receivedQueue.md b/old_docs/API_docs_v44/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v44/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v44/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v44/methods/messages.requestEncryption.md b/old_docs/API_docs_v44/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v44/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v44/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v44/methods/updates.getChannelDifference.md b/old_docs/API_docs_v44/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v44/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v44/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v44/methods/updates.getDifference.md b/old_docs/API_docs_v44/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v44/methods/updates.getDifference.md +++ b/old_docs/API_docs_v44/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v44/methods/updates.getState.md b/old_docs/API_docs_v44/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v44/methods/updates.getState.md +++ b/old_docs/API_docs_v44/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v44/methods/upload.getFile.md b/old_docs/API_docs_v44/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v44/methods/upload.getFile.md +++ b/old_docs/API_docs_v44/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v44/methods/upload.saveFilePart.md b/old_docs/API_docs_v44/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v44/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v44/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v44/methods/users.getFullUser.md b/old_docs/API_docs_v44/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v44/methods/users.getFullUser.md +++ b/old_docs/API_docs_v44/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md index 8558179e..06da5c88 100644 --- a/old_docs/API_docs_v45/methods/README.md +++ b/old_docs/API_docs_v45/methods/README.md @@ -38,12 +38,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -64,12 +58,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -132,8 +122,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -144,14 +132,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get saved GIFs: messages.getSavedGifs * Get stickers by emoji: messages.getStickers @@ -200,12 +184,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -224,8 +202,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -240,28 +216,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -272,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -286,10 +246,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -304,8 +260,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a result obtained using [messages.getInlineBotResults](../methods/messages.getInlineBotResults.md).: messages.sendInlineBotResult -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -316,26 +270,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -352,3 +298,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v45/methods/account.getPasswordSettings.md b/old_docs/API_docs_v45/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v45/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v45/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v45/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v45/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v45/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v45/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v45/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v45/methods/auth.checkPassword.md b/old_docs/API_docs_v45/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v45/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v45/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v45/methods/auth.exportAuthorization.md b/old_docs/API_docs_v45/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v45/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v45/methods/auth.importAuthorization.md b/old_docs/API_docs_v45/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v45/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v45/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v45/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v45/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v45/methods/auth.logOut.md b/old_docs/API_docs_v45/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v45/methods/auth.logOut.md +++ b/old_docs/API_docs_v45/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v45/methods/auth.sendCode.md b/old_docs/API_docs_v45/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v45/methods/auth.sendCode.md +++ b/old_docs/API_docs_v45/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v45/methods/auth.signIn.md b/old_docs/API_docs_v45/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v45/methods/auth.signIn.md +++ b/old_docs/API_docs_v45/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v45/methods/auth.signUp.md b/old_docs/API_docs_v45/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v45/methods/auth.signUp.md +++ b/old_docs/API_docs_v45/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v45/methods/channels.getFullChannel.md b/old_docs/API_docs_v45/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v45/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v45/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v45/methods/contacts.resolveUsername.md b/old_docs/API_docs_v45/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v45/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v45/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v45/methods/messages.acceptEncryption.md b/old_docs/API_docs_v45/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v45/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v45/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v45/methods/messages.discardEncryption.md b/old_docs/API_docs_v45/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v45/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v45/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v45/methods/messages.getDhConfig.md b/old_docs/API_docs_v45/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v45/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v45/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v45/methods/messages.getFullChat.md b/old_docs/API_docs_v45/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v45/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v45/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v45/methods/messages.receivedQueue.md b/old_docs/API_docs_v45/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v45/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v45/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v45/methods/messages.requestEncryption.md b/old_docs/API_docs_v45/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v45/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v45/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v45/methods/updates.getChannelDifference.md b/old_docs/API_docs_v45/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v45/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v45/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v45/methods/updates.getDifference.md b/old_docs/API_docs_v45/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v45/methods/updates.getDifference.md +++ b/old_docs/API_docs_v45/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v45/methods/updates.getState.md b/old_docs/API_docs_v45/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v45/methods/updates.getState.md +++ b/old_docs/API_docs_v45/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v45/methods/upload.getFile.md b/old_docs/API_docs_v45/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v45/methods/upload.getFile.md +++ b/old_docs/API_docs_v45/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v45/methods/upload.saveFilePart.md b/old_docs/API_docs_v45/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v45/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v45/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v45/methods/users.getFullUser.md b/old_docs/API_docs_v45/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v45/methods/users.getFullUser.md +++ b/old_docs/API_docs_v45/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md index 8558179e..06da5c88 100644 --- a/old_docs/API_docs_v46/methods/README.md +++ b/old_docs/API_docs_v46/methods/README.md @@ -38,12 +38,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -64,12 +58,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -132,8 +122,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -144,14 +132,10 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get saved GIFs: messages.getSavedGifs * Get stickers by emoji: messages.getStickers @@ -200,12 +184,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -224,8 +202,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -240,28 +216,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -272,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -286,10 +246,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -304,8 +260,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a result obtained using [messages.getInlineBotResults](../methods/messages.getInlineBotResults.md).: messages.sendInlineBotResult -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Send verification phone call: auth.sendCall @@ -316,26 +270,18 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -352,3 +298,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v46/methods/account.getPasswordSettings.md b/old_docs/API_docs_v46/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v46/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v46/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v46/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v46/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v46/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v46/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v46/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v46/methods/auth.checkPassword.md b/old_docs/API_docs_v46/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v46/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v46/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v46/methods/auth.exportAuthorization.md b/old_docs/API_docs_v46/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v46/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v46/methods/auth.importAuthorization.md b/old_docs/API_docs_v46/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v46/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v46/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v46/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v46/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v46/methods/auth.logOut.md b/old_docs/API_docs_v46/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v46/methods/auth.logOut.md +++ b/old_docs/API_docs_v46/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v46/methods/auth.sendCode.md b/old_docs/API_docs_v46/methods/auth.sendCode.md index 0abe7293..9fa1a0c7 100644 --- a/old_docs/API_docs_v46/methods/auth.sendCode.md +++ b/old_docs/API_docs_v46/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |sms\_type|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v46/methods/auth.signIn.md b/old_docs/API_docs_v46/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v46/methods/auth.signIn.md +++ b/old_docs/API_docs_v46/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v46/methods/auth.signUp.md b/old_docs/API_docs_v46/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v46/methods/auth.signUp.md +++ b/old_docs/API_docs_v46/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v46/methods/channels.getFullChannel.md b/old_docs/API_docs_v46/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v46/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v46/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v46/methods/contacts.resolveUsername.md b/old_docs/API_docs_v46/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v46/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v46/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v46/methods/messages.acceptEncryption.md b/old_docs/API_docs_v46/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v46/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v46/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v46/methods/messages.discardEncryption.md b/old_docs/API_docs_v46/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v46/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v46/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v46/methods/messages.getDhConfig.md b/old_docs/API_docs_v46/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v46/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v46/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v46/methods/messages.getFullChat.md b/old_docs/API_docs_v46/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v46/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v46/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v46/methods/messages.receivedQueue.md b/old_docs/API_docs_v46/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v46/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v46/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v46/methods/messages.requestEncryption.md b/old_docs/API_docs_v46/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v46/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v46/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v46/methods/updates.getChannelDifference.md b/old_docs/API_docs_v46/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v46/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v46/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v46/methods/updates.getDifference.md b/old_docs/API_docs_v46/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v46/methods/updates.getDifference.md +++ b/old_docs/API_docs_v46/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v46/methods/updates.getState.md b/old_docs/API_docs_v46/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v46/methods/updates.getState.md +++ b/old_docs/API_docs_v46/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v46/methods/upload.getFile.md b/old_docs/API_docs_v46/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v46/methods/upload.getFile.md +++ b/old_docs/API_docs_v46/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v46/methods/upload.saveFilePart.md b/old_docs/API_docs_v46/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v46/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v46/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v46/methods/users.getFullUser.md b/old_docs/API_docs_v46/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v46/methods/users.getFullUser.md +++ b/old_docs/API_docs_v46/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md index 84bc41c5..d959601d 100644 --- a/old_docs/API_docs_v51/methods/README.md +++ b/old_docs/API_docs_v51/methods/README.md @@ -40,14 +40,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -68,12 +62,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -144,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get days to live of account: account.getAccountTTL -* Get full info about a channel: channels.getFullChannel - * Get important channel/supergroup history: channels.getImportantHistory * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels @@ -158,16 +146,12 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get logged-in sessions: account.getAuthorizations -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get peer settings: messages.getPeerSettings * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get saved GIFs: messages.getSavedGifs * Get stickers by emoji: messages.getStickers @@ -216,12 +200,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -242,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -260,28 +236,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -292,8 +254,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -306,10 +266,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns users found by username substring.: contacts.search -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -322,8 +278,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a result obtained using [messages.getInlineBotResults](../methods/messages.getInlineBotResults.md).: messages.sendInlineBotResult -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -332,30 +286,22 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -372,3 +318,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v51/methods/account.getPasswordSettings.md b/old_docs/API_docs_v51/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v51/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v51/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v51/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v51/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v51/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v51/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v51/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v51/methods/auth.checkPassword.md b/old_docs/API_docs_v51/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v51/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v51/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v51/methods/auth.exportAuthorization.md b/old_docs/API_docs_v51/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v51/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v51/methods/auth.importAuthorization.md b/old_docs/API_docs_v51/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v51/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v51/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v51/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v51/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v51/methods/auth.logOut.md b/old_docs/API_docs_v51/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v51/methods/auth.logOut.md +++ b/old_docs/API_docs_v51/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v51/methods/auth.sendCode.md b/old_docs/API_docs_v51/methods/auth.sendCode.md index 75bd0afb..4172fac3 100644 --- a/old_docs/API_docs_v51/methods/auth.sendCode.md +++ b/old_docs/API_docs_v51/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| |lang\_code|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| diff --git a/old_docs/API_docs_v51/methods/auth.signIn.md b/old_docs/API_docs_v51/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v51/methods/auth.signIn.md +++ b/old_docs/API_docs_v51/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v51/methods/auth.signUp.md b/old_docs/API_docs_v51/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v51/methods/auth.signUp.md +++ b/old_docs/API_docs_v51/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v51/methods/channels.getFullChannel.md b/old_docs/API_docs_v51/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v51/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v51/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v51/methods/contacts.resolveUsername.md b/old_docs/API_docs_v51/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v51/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v51/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v51/methods/messages.acceptEncryption.md b/old_docs/API_docs_v51/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v51/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v51/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v51/methods/messages.discardEncryption.md b/old_docs/API_docs_v51/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v51/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v51/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v51/methods/messages.getDhConfig.md b/old_docs/API_docs_v51/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v51/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v51/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v51/methods/messages.getFullChat.md b/old_docs/API_docs_v51/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v51/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v51/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v51/methods/messages.receivedQueue.md b/old_docs/API_docs_v51/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v51/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v51/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v51/methods/messages.requestEncryption.md b/old_docs/API_docs_v51/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v51/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v51/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v51/methods/updates.getChannelDifference.md b/old_docs/API_docs_v51/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v51/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v51/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v51/methods/updates.getDifference.md b/old_docs/API_docs_v51/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v51/methods/updates.getDifference.md +++ b/old_docs/API_docs_v51/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v51/methods/updates.getState.md b/old_docs/API_docs_v51/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v51/methods/updates.getState.md +++ b/old_docs/API_docs_v51/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v51/methods/upload.getFile.md b/old_docs/API_docs_v51/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v51/methods/upload.getFile.md +++ b/old_docs/API_docs_v51/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v51/methods/upload.saveFilePart.md b/old_docs/API_docs_v51/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v51/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v51/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v51/methods/users.getFullUser.md b/old_docs/API_docs_v51/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v51/methods/users.getFullUser.md +++ b/old_docs/API_docs_v51/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md index a46782cc..b8c2876b 100644 --- a/old_docs/API_docs_v53/methods/README.md +++ b/old_docs/API_docs_v53/methods/README.md @@ -40,14 +40,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -68,12 +62,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -142,8 +132,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get dialog info of specified peers: messages.getPeerDialogs -* Get full info about a channel: channels.getFullChannel - * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels * Get info about a [channel/supergroup](https://core.telegram.org/api/channel) participant: channels.getParticipant @@ -156,16 +144,12 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get peer settings: messages.getPeerSettings * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get saved GIFs: messages.getSavedGifs * Get stickers by emoji: messages.getStickers @@ -214,12 +198,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -240,8 +218,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -260,28 +236,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -292,8 +254,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -310,10 +270,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -326,8 +282,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send a result obtained using [messages.getInlineBotResults](../methods/messages.getInlineBotResults.md).: messages.sendInlineBotResult -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -336,30 +290,22 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -376,3 +322,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v53/methods/account.getPasswordSettings.md b/old_docs/API_docs_v53/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v53/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v53/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v53/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v53/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v53/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v53/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/auth.checkPassword.md b/old_docs/API_docs_v53/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v53/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v53/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v53/methods/auth.exportAuthorization.md b/old_docs/API_docs_v53/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v53/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v53/methods/auth.importAuthorization.md b/old_docs/API_docs_v53/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v53/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v53/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v53/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v53/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v53/methods/auth.logOut.md b/old_docs/API_docs_v53/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v53/methods/auth.logOut.md +++ b/old_docs/API_docs_v53/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v53/methods/auth.sendCode.md b/old_docs/API_docs_v53/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v53/methods/auth.sendCode.md +++ b/old_docs/API_docs_v53/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v53/methods/auth.signIn.md b/old_docs/API_docs_v53/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v53/methods/auth.signIn.md +++ b/old_docs/API_docs_v53/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v53/methods/auth.signUp.md b/old_docs/API_docs_v53/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v53/methods/auth.signUp.md +++ b/old_docs/API_docs_v53/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v53/methods/channels.getFullChannel.md b/old_docs/API_docs_v53/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v53/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v53/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v53/methods/contacts.resolveUsername.md b/old_docs/API_docs_v53/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v53/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v53/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v53/methods/messages.acceptEncryption.md b/old_docs/API_docs_v53/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v53/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v53/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v53/methods/messages.discardEncryption.md b/old_docs/API_docs_v53/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v53/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v53/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/messages.getDhConfig.md b/old_docs/API_docs_v53/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v53/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v53/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v53/methods/messages.getFullChat.md b/old_docs/API_docs_v53/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v53/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v53/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v53/methods/messages.receivedQueue.md b/old_docs/API_docs_v53/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v53/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v53/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v53/methods/messages.requestEncryption.md b/old_docs/API_docs_v53/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v53/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v53/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v53/methods/updates.getChannelDifference.md b/old_docs/API_docs_v53/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v53/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v53/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v53/methods/updates.getDifference.md b/old_docs/API_docs_v53/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v53/methods/updates.getDifference.md +++ b/old_docs/API_docs_v53/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v53/methods/updates.getState.md b/old_docs/API_docs_v53/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v53/methods/updates.getState.md +++ b/old_docs/API_docs_v53/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v53/methods/upload.getFile.md b/old_docs/API_docs_v53/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v53/methods/upload.getFile.md +++ b/old_docs/API_docs_v53/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/upload.saveFilePart.md b/old_docs/API_docs_v53/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v53/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v53/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/users.getFullUser.md b/old_docs/API_docs_v53/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v53/methods/users.getFullUser.md +++ b/old_docs/API_docs_v53/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md index e48be8ba..c1ec380e 100644 --- a/old_docs/API_docs_v55/methods/README.md +++ b/old_docs/API_docs_v55/methods/README.md @@ -42,14 +42,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -74,12 +68,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -152,8 +142,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels * Get info about a [channel/supergroup](https://core.telegram.org/api/channel) participant: channels.getParticipant @@ -166,16 +154,12 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get peer settings: messages.getPeerSettings * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -228,12 +212,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -256,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -276,28 +252,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -308,8 +270,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -326,10 +286,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -344,8 +300,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.sendConfirmPhoneCode -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -354,30 +308,22 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -394,3 +340,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v55/methods/account.getPasswordSettings.md b/old_docs/API_docs_v55/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v55/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v55/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v55/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v55/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v55/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v55/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/auth.checkPassword.md b/old_docs/API_docs_v55/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v55/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v55/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v55/methods/auth.exportAuthorization.md b/old_docs/API_docs_v55/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v55/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v55/methods/auth.importAuthorization.md b/old_docs/API_docs_v55/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v55/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v55/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v55/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v55/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v55/methods/auth.logOut.md b/old_docs/API_docs_v55/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v55/methods/auth.logOut.md +++ b/old_docs/API_docs_v55/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v55/methods/auth.sendCode.md b/old_docs/API_docs_v55/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v55/methods/auth.sendCode.md +++ b/old_docs/API_docs_v55/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v55/methods/auth.signIn.md b/old_docs/API_docs_v55/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v55/methods/auth.signIn.md +++ b/old_docs/API_docs_v55/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v55/methods/auth.signUp.md b/old_docs/API_docs_v55/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v55/methods/auth.signUp.md +++ b/old_docs/API_docs_v55/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v55/methods/channels.getFullChannel.md b/old_docs/API_docs_v55/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v55/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v55/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v55/methods/contacts.resolveUsername.md b/old_docs/API_docs_v55/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v55/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v55/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v55/methods/messages.acceptEncryption.md b/old_docs/API_docs_v55/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v55/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v55/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v55/methods/messages.discardEncryption.md b/old_docs/API_docs_v55/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v55/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v55/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/messages.getDhConfig.md b/old_docs/API_docs_v55/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v55/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v55/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v55/methods/messages.getFullChat.md b/old_docs/API_docs_v55/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v55/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v55/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v55/methods/messages.receivedQueue.md b/old_docs/API_docs_v55/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v55/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v55/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v55/methods/messages.requestEncryption.md b/old_docs/API_docs_v55/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v55/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v55/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v55/methods/updates.getChannelDifference.md b/old_docs/API_docs_v55/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v55/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v55/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v55/methods/updates.getDifference.md b/old_docs/API_docs_v55/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v55/methods/updates.getDifference.md +++ b/old_docs/API_docs_v55/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v55/methods/updates.getState.md b/old_docs/API_docs_v55/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v55/methods/updates.getState.md +++ b/old_docs/API_docs_v55/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v55/methods/upload.getFile.md b/old_docs/API_docs_v55/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v55/methods/upload.getFile.md +++ b/old_docs/API_docs_v55/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/upload.saveFilePart.md b/old_docs/API_docs_v55/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v55/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v55/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/users.getFullUser.md b/old_docs/API_docs_v55/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v55/methods/users.getFullUser.md +++ b/old_docs/API_docs_v55/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md index a75f9632..2e1cf9c8 100644 --- a/old_docs/API_docs_v57/methods/README.md +++ b/old_docs/API_docs_v57/methods/README.md @@ -42,14 +42,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -74,12 +68,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -156,8 +146,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -176,16 +164,12 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get peer settings: messages.getPeerSettings * Get preview of webpage: messages.getWebPagePreview * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -236,12 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -264,8 +242,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam @@ -284,28 +260,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -316,8 +278,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -334,10 +294,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -350,8 +306,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.sendConfirmPhoneCode -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -360,30 +314,22 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -404,3 +350,55 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v57/methods/account.getPasswordSettings.md b/old_docs/API_docs_v57/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v57/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v57/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v57/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v57/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v57/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v57/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/auth.checkPassword.md b/old_docs/API_docs_v57/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v57/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v57/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v57/methods/auth.exportAuthorization.md b/old_docs/API_docs_v57/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v57/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v57/methods/auth.importAuthorization.md b/old_docs/API_docs_v57/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v57/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v57/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v57/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v57/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v57/methods/auth.logOut.md b/old_docs/API_docs_v57/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v57/methods/auth.logOut.md +++ b/old_docs/API_docs_v57/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v57/methods/auth.sendCode.md b/old_docs/API_docs_v57/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v57/methods/auth.sendCode.md +++ b/old_docs/API_docs_v57/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v57/methods/auth.signIn.md b/old_docs/API_docs_v57/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v57/methods/auth.signIn.md +++ b/old_docs/API_docs_v57/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v57/methods/auth.signUp.md b/old_docs/API_docs_v57/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v57/methods/auth.signUp.md +++ b/old_docs/API_docs_v57/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v57/methods/channels.getFullChannel.md b/old_docs/API_docs_v57/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v57/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v57/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v57/methods/contacts.resolveUsername.md b/old_docs/API_docs_v57/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v57/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v57/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v57/methods/messages.acceptEncryption.md b/old_docs/API_docs_v57/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v57/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v57/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v57/methods/messages.discardEncryption.md b/old_docs/API_docs_v57/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v57/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v57/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/messages.getDhConfig.md b/old_docs/API_docs_v57/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v57/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v57/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v57/methods/messages.getFullChat.md b/old_docs/API_docs_v57/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v57/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v57/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v57/methods/messages.receivedQueue.md b/old_docs/API_docs_v57/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v57/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v57/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v57/methods/messages.requestEncryption.md b/old_docs/API_docs_v57/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v57/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v57/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v57/methods/updates.getChannelDifference.md b/old_docs/API_docs_v57/methods/updates.getChannelDifference.md index 7077bf45..77a45636 100644 --- a/old_docs/API_docs_v57/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v57/methods/updates.getChannelDifference.md @@ -1,22 +1,22 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v57/methods/updates.getDifference.md b/old_docs/API_docs_v57/methods/updates.getDifference.md index c529b96e..57ea6d99 100644 --- a/old_docs/API_docs_v57/methods/updates.getDifference.md +++ b/old_docs/API_docs_v57/methods/updates.getDifference.md @@ -1,21 +1,21 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v57/methods/updates.getState.md b/old_docs/API_docs_v57/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v57/methods/updates.getState.md +++ b/old_docs/API_docs_v57/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v57/methods/upload.getFile.md b/old_docs/API_docs_v57/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v57/methods/upload.getFile.md +++ b/old_docs/API_docs_v57/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/upload.saveFilePart.md b/old_docs/API_docs_v57/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v57/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v57/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/users.getFullUser.md b/old_docs/API_docs_v57/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v57/methods/users.getFullUser.md +++ b/old_docs/API_docs_v57/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md index ecca145d..7eb1274f 100644 --- a/old_docs/API_docs_v62/methods/README.md +++ b/old_docs/API_docs_v62/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add/remove sticker from recent stickers list: messages.saveRecentSticker @@ -44,14 +42,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answer an inline query, for bots only: messages.setInlineBotResults -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -76,12 +68,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -166,8 +154,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -186,8 +172,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get peer settings: messages.getPeerSettings * Get pinned dialogs: messages.getPinnedDialogs @@ -196,8 +180,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -250,12 +232,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -280,12 +256,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Query an inline bot: messages.getInlineBotResults -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Reorder pinned dialogs: messages.reorderPinnedDialogs @@ -308,28 +280,14 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -340,8 +298,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -358,10 +314,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -374,8 +326,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.sendConfirmPhoneCode -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -384,32 +334,22 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -430,3 +370,61 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + diff --git a/old_docs/API_docs_v62/methods/account.getPasswordSettings.md b/old_docs/API_docs_v62/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v62/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v62/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v62/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v62/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v62/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v62/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/auth.checkPassword.md b/old_docs/API_docs_v62/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v62/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v62/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v62/methods/auth.exportAuthorization.md b/old_docs/API_docs_v62/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v62/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v62/methods/auth.importAuthorization.md b/old_docs/API_docs_v62/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v62/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v62/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v62/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v62/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v62/methods/auth.logOut.md b/old_docs/API_docs_v62/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v62/methods/auth.logOut.md +++ b/old_docs/API_docs_v62/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v62/methods/auth.sendCode.md b/old_docs/API_docs_v62/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v62/methods/auth.sendCode.md +++ b/old_docs/API_docs_v62/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v62/methods/auth.signIn.md b/old_docs/API_docs_v62/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v62/methods/auth.signIn.md +++ b/old_docs/API_docs_v62/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v62/methods/auth.signUp.md b/old_docs/API_docs_v62/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v62/methods/auth.signUp.md +++ b/old_docs/API_docs_v62/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v62/methods/channels.getFullChannel.md b/old_docs/API_docs_v62/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v62/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v62/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v62/methods/contacts.resolveUsername.md b/old_docs/API_docs_v62/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v62/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v62/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v62/methods/messages.acceptEncryption.md b/old_docs/API_docs_v62/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v62/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v62/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v62/methods/messages.discardEncryption.md b/old_docs/API_docs_v62/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v62/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v62/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/messages.getDhConfig.md b/old_docs/API_docs_v62/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v62/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v62/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v62/methods/messages.getFullChat.md b/old_docs/API_docs_v62/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v62/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v62/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v62/methods/messages.receivedQueue.md b/old_docs/API_docs_v62/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v62/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v62/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v62/methods/messages.requestEncryption.md b/old_docs/API_docs_v62/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v62/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v62/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v62/methods/phone.acceptCall.md b/old_docs/API_docs_v62/methods/phone.acceptCall.md index 951ff2df..fd07fb55 100644 --- a/old_docs/API_docs_v62/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v62/methods/phone.acceptCall.md @@ -1,22 +1,22 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| |key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v62/methods/phone.discardCall.md b/old_docs/API_docs_v62/methods/phone.discardCall.md index 6bb12629..6a8d02c2 100644 --- a/old_docs/API_docs_v62/methods/phone.discardCall.md +++ b/old_docs/API_docs_v62/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/phone.requestCall.md b/old_docs/API_docs_v62/methods/phone.requestCall.md index 4767b3d5..302bc640 100644 --- a/old_docs/API_docs_v62/methods/phone.requestCall.md +++ b/old_docs/API_docs_v62/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| |g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v62/methods/updates.getChannelDifference.md b/old_docs/API_docs_v62/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v62/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v62/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v62/methods/updates.getDifference.md b/old_docs/API_docs_v62/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v62/methods/updates.getDifference.md +++ b/old_docs/API_docs_v62/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v62/methods/updates.getState.md b/old_docs/API_docs_v62/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v62/methods/updates.getState.md +++ b/old_docs/API_docs_v62/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v62/methods/upload.getFile.md b/old_docs/API_docs_v62/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v62/methods/upload.getFile.md +++ b/old_docs/API_docs_v62/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/upload.saveFilePart.md b/old_docs/API_docs_v62/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v62/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v62/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/users.getFullUser.md b/old_docs/API_docs_v62/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v62/methods/users.getFullUser.md +++ b/old_docs/API_docs_v62/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v65/methods/README.md b/old_docs/API_docs_v65/methods/README.md index af8bfec7..d35e3dfd 100644 --- a/old_docs/API_docs_v65/methods/README.md +++ b/old_docs/API_docs_v65/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add/remove sticker from recent stickers list: messages.saveRecentSticker @@ -46,14 +44,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answers a custom query; for bots only: bots.answerWebhookJSONQuery -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -80,12 +72,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -176,8 +164,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -198,8 +184,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get payment receipt: payments.getPaymentReceipt * Get peer settings: messages.getPeerSettings @@ -212,8 +196,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -272,12 +254,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -312,12 +288,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Reorder pinned dialogs: messages.reorderPinnedDialogs @@ -344,30 +316,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -378,8 +336,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -398,10 +354,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -418,8 +370,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -430,14 +380,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -446,20 +392,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -480,5 +420,63 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v65/methods/account.getPasswordSettings.md b/old_docs/API_docs_v65/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v65/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v65/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v65/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v65/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v65/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v65/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/auth.checkPassword.md b/old_docs/API_docs_v65/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v65/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v65/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v65/methods/auth.exportAuthorization.md b/old_docs/API_docs_v65/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v65/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v65/methods/auth.importAuthorization.md b/old_docs/API_docs_v65/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v65/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v65/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v65/methods/auth.importBotAuthorization.md index 0f063fd9..1bcd55af 100644 --- a/old_docs/API_docs_v65/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth.importBotAuthorization.md @@ -1,13 +1,13 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: @@ -17,9 +17,9 @@ Login as a bot |b|[Bool](../types/Bool.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| |c|[Bool](../types/Bool.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| |d|[Bool](../types/Bool.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v65/methods/auth.logOut.md b/old_docs/API_docs_v65/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v65/methods/auth.logOut.md +++ b/old_docs/API_docs_v65/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v65/methods/auth.sendCode.md b/old_docs/API_docs_v65/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v65/methods/auth.sendCode.md +++ b/old_docs/API_docs_v65/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v65/methods/auth.signIn.md b/old_docs/API_docs_v65/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v65/methods/auth.signIn.md +++ b/old_docs/API_docs_v65/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v65/methods/auth.signUp.md b/old_docs/API_docs_v65/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v65/methods/auth.signUp.md +++ b/old_docs/API_docs_v65/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v65/methods/channels.getFullChannel.md b/old_docs/API_docs_v65/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v65/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v65/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v65/methods/contacts.resolveUsername.md b/old_docs/API_docs_v65/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v65/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v65/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v65/methods/messages.acceptEncryption.md b/old_docs/API_docs_v65/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v65/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v65/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v65/methods/messages.discardEncryption.md b/old_docs/API_docs_v65/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v65/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v65/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/messages.getDhConfig.md b/old_docs/API_docs_v65/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v65/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v65/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v65/methods/messages.getFullChat.md b/old_docs/API_docs_v65/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v65/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v65/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v65/methods/messages.receivedQueue.md b/old_docs/API_docs_v65/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v65/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v65/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v65/methods/messages.requestEncryption.md b/old_docs/API_docs_v65/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v65/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v65/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v65/methods/phone.acceptCall.md b/old_docs/API_docs_v65/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v65/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v65/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v65/methods/phone.confirmCall.md b/old_docs/API_docs_v65/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v65/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v65/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v65/methods/phone.discardCall.md b/old_docs/API_docs_v65/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v65/methods/phone.discardCall.md +++ b/old_docs/API_docs_v65/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v65/methods/phone.requestCall.md b/old_docs/API_docs_v65/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v65/methods/phone.requestCall.md +++ b/old_docs/API_docs_v65/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v65/methods/updates.getChannelDifference.md b/old_docs/API_docs_v65/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v65/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v65/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v65/methods/updates.getDifference.md b/old_docs/API_docs_v65/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v65/methods/updates.getDifference.md +++ b/old_docs/API_docs_v65/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v65/methods/updates.getState.md b/old_docs/API_docs_v65/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v65/methods/updates.getState.md +++ b/old_docs/API_docs_v65/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v65/methods/upload.getFile.md b/old_docs/API_docs_v65/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v65/methods/upload.getFile.md +++ b/old_docs/API_docs_v65/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/upload.saveFilePart.md b/old_docs/API_docs_v65/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v65/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v65/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/users.getFullUser.md b/old_docs/API_docs_v65/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v65/methods/users.getFullUser.md +++ b/old_docs/API_docs_v65/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v66/methods/README.md b/old_docs/API_docs_v66/methods/README.md index b4b361dc..ccb6e154 100644 --- a/old_docs/API_docs_v66/methods/README.md +++ b/old_docs/API_docs_v66/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add/remove sticker from recent stickers list: messages.saveRecentSticker @@ -46,14 +44,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Answers a custom query; for bots only: bots.answerWebhookJSONQuery -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -80,12 +72,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Creates a new chat.: messages.createChat @@ -122,8 +110,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Do not send answer to provided request: rpc_drop_answer -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -180,8 +166,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -202,8 +186,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get payment receipt: payments.getPaymentReceipt * Get peer settings: messages.getPeerSettings @@ -216,8 +198,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -276,12 +256,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -316,12 +290,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Reorder installed stickersets: messages.reorderStickerSets * Reorder pinned dialogs: messages.reorderPinnedDialogs @@ -334,8 +304,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Requests Diffie-hellman parameters for key exchange: req_DH_params @@ -350,30 +318,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -384,8 +338,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -404,10 +356,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -424,8 +372,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -436,14 +382,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -452,20 +394,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -486,5 +422,67 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v66/methods/account.getPasswordSettings.md b/old_docs/API_docs_v66/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v66/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v66/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v66/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v66/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v66/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v66/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/auth.checkPassword.md b/old_docs/API_docs_v66/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v66/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v66/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v66/methods/auth.exportAuthorization.md b/old_docs/API_docs_v66/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v66/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v66/methods/auth.importAuthorization.md b/old_docs/API_docs_v66/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v66/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v66/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v66/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v66/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v66/methods/auth.logOut.md b/old_docs/API_docs_v66/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v66/methods/auth.logOut.md +++ b/old_docs/API_docs_v66/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v66/methods/auth.sendCode.md b/old_docs/API_docs_v66/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v66/methods/auth.sendCode.md +++ b/old_docs/API_docs_v66/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v66/methods/auth.signIn.md b/old_docs/API_docs_v66/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v66/methods/auth.signIn.md +++ b/old_docs/API_docs_v66/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v66/methods/auth.signUp.md b/old_docs/API_docs_v66/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v66/methods/auth.signUp.md +++ b/old_docs/API_docs_v66/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v66/methods/channels.getFullChannel.md b/old_docs/API_docs_v66/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v66/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v66/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v66/methods/contacts.resolveUsername.md b/old_docs/API_docs_v66/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v66/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v66/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v66/methods/messages.acceptEncryption.md b/old_docs/API_docs_v66/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v66/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v66/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v66/methods/messages.discardEncryption.md b/old_docs/API_docs_v66/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v66/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v66/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/messages.getDhConfig.md b/old_docs/API_docs_v66/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v66/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v66/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v66/methods/messages.getFullChat.md b/old_docs/API_docs_v66/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v66/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v66/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v66/methods/messages.receivedQueue.md b/old_docs/API_docs_v66/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v66/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v66/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v66/methods/messages.requestEncryption.md b/old_docs/API_docs_v66/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v66/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v66/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v66/methods/phone.acceptCall.md b/old_docs/API_docs_v66/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v66/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v66/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v66/methods/phone.confirmCall.md b/old_docs/API_docs_v66/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v66/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v66/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v66/methods/phone.discardCall.md b/old_docs/API_docs_v66/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v66/methods/phone.discardCall.md +++ b/old_docs/API_docs_v66/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v66/methods/phone.requestCall.md b/old_docs/API_docs_v66/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v66/methods/phone.requestCall.md +++ b/old_docs/API_docs_v66/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v66/methods/updates.getChannelDifference.md b/old_docs/API_docs_v66/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v66/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v66/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v66/methods/updates.getDifference.md b/old_docs/API_docs_v66/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v66/methods/updates.getDifference.md +++ b/old_docs/API_docs_v66/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v66/methods/updates.getState.md b/old_docs/API_docs_v66/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v66/methods/updates.getState.md +++ b/old_docs/API_docs_v66/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v66/methods/upload.getCdnFile.md b/old_docs/API_docs_v66/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v66/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v66/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v66/methods/upload.getFile.md b/old_docs/API_docs_v66/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v66/methods/upload.getFile.md +++ b/old_docs/API_docs_v66/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v66/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v66/methods/upload.reuploadCdnFile.md index e8fa241a..4fefbb42 100644 --- a/old_docs/API_docs_v66/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v66/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/upload.saveFilePart.md b/old_docs/API_docs_v66/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v66/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v66/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/users.getFullUser.md b/old_docs/API_docs_v66/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v66/methods/users.getFullUser.md +++ b/old_docs/API_docs_v66/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v68/methods/README.md b/old_docs/API_docs_v68/methods/README.md index 71ba17e4..bed67a90 100644 --- a/old_docs/API_docs_v68/methods/README.md +++ b/old_docs/API_docs_v68/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -50,14 +48,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -86,12 +78,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -130,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Do not send answer to provided request: rpc_drop_answer -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -188,8 +174,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -214,8 +198,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -230,8 +212,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -292,12 +272,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -332,12 +306,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -352,8 +322,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Requests Diffie-hellman parameters for key exchange: req_DH_params @@ -368,30 +336,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -402,8 +356,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -422,10 +374,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -442,8 +390,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -454,14 +400,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -470,20 +412,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -506,5 +442,67 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v68/methods/account.getPasswordSettings.md b/old_docs/API_docs_v68/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v68/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v68/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v68/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v68/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v68/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v68/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/auth.checkPassword.md b/old_docs/API_docs_v68/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v68/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v68/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v68/methods/auth.exportAuthorization.md b/old_docs/API_docs_v68/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v68/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v68/methods/auth.importAuthorization.md b/old_docs/API_docs_v68/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v68/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v68/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v68/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v68/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v68/methods/auth.logOut.md b/old_docs/API_docs_v68/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v68/methods/auth.logOut.md +++ b/old_docs/API_docs_v68/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v68/methods/auth.sendCode.md b/old_docs/API_docs_v68/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v68/methods/auth.sendCode.md +++ b/old_docs/API_docs_v68/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v68/methods/auth.signIn.md b/old_docs/API_docs_v68/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v68/methods/auth.signIn.md +++ b/old_docs/API_docs_v68/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v68/methods/auth.signUp.md b/old_docs/API_docs_v68/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v68/methods/auth.signUp.md +++ b/old_docs/API_docs_v68/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v68/methods/channels.getFullChannel.md b/old_docs/API_docs_v68/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v68/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v68/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v68/methods/contacts.resolveUsername.md b/old_docs/API_docs_v68/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v68/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v68/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v68/methods/messages.acceptEncryption.md b/old_docs/API_docs_v68/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v68/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v68/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v68/methods/messages.discardEncryption.md b/old_docs/API_docs_v68/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v68/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v68/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/messages.getDhConfig.md b/old_docs/API_docs_v68/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v68/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v68/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v68/methods/messages.getFullChat.md b/old_docs/API_docs_v68/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v68/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v68/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v68/methods/messages.receivedQueue.md b/old_docs/API_docs_v68/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v68/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v68/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v68/methods/messages.requestEncryption.md b/old_docs/API_docs_v68/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v68/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v68/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v68/methods/phone.acceptCall.md b/old_docs/API_docs_v68/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v68/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v68/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v68/methods/phone.confirmCall.md b/old_docs/API_docs_v68/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v68/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v68/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v68/methods/phone.discardCall.md b/old_docs/API_docs_v68/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v68/methods/phone.discardCall.md +++ b/old_docs/API_docs_v68/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v68/methods/phone.requestCall.md b/old_docs/API_docs_v68/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v68/methods/phone.requestCall.md +++ b/old_docs/API_docs_v68/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v68/methods/updates.getChannelDifference.md b/old_docs/API_docs_v68/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v68/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v68/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v68/methods/updates.getDifference.md b/old_docs/API_docs_v68/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v68/methods/updates.getDifference.md +++ b/old_docs/API_docs_v68/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v68/methods/updates.getState.md b/old_docs/API_docs_v68/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v68/methods/updates.getState.md +++ b/old_docs/API_docs_v68/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v68/methods/upload.getCdnFile.md b/old_docs/API_docs_v68/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v68/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v68/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v68/methods/upload.getFile.md b/old_docs/API_docs_v68/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v68/methods/upload.getFile.md +++ b/old_docs/API_docs_v68/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v68/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v68/methods/upload.reuploadCdnFile.md index e8fa241a..4fefbb42 100644 --- a/old_docs/API_docs_v68/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v68/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/upload.saveFilePart.md b/old_docs/API_docs_v68/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v68/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v68/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/users.getFullUser.md b/old_docs/API_docs_v68/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v68/methods/users.getFullUser.md +++ b/old_docs/API_docs_v68/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v70/methods/README.md b/old_docs/API_docs_v70/methods/README.md index 8e0c8e0e..727b905c 100644 --- a/old_docs/API_docs_v70/methods/README.md +++ b/old_docs/API_docs_v70/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -50,14 +48,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -86,12 +78,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -130,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Do not send answer to provided request: rpc_drop_answer -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -158,8 +144,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -190,8 +174,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -216,8 +198,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -232,8 +212,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -294,12 +272,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -336,12 +308,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -356,8 +324,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Requests Diffie-hellman parameters for key exchange: req_DH_params @@ -372,30 +338,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -406,8 +358,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -426,10 +376,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -446,8 +392,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -458,14 +402,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -474,20 +414,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -510,5 +444,69 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v70/methods/account.getPasswordSettings.md b/old_docs/API_docs_v70/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v70/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v70/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v70/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v70/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v70/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v70/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/auth.checkPassword.md b/old_docs/API_docs_v70/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v70/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v70/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v70/methods/auth.exportAuthorization.md b/old_docs/API_docs_v70/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v70/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v70/methods/auth.importAuthorization.md b/old_docs/API_docs_v70/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v70/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v70/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v70/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v70/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v70/methods/auth.logOut.md b/old_docs/API_docs_v70/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v70/methods/auth.logOut.md +++ b/old_docs/API_docs_v70/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v70/methods/auth.sendCode.md b/old_docs/API_docs_v70/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v70/methods/auth.sendCode.md +++ b/old_docs/API_docs_v70/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v70/methods/auth.signIn.md b/old_docs/API_docs_v70/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v70/methods/auth.signIn.md +++ b/old_docs/API_docs_v70/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v70/methods/auth.signUp.md b/old_docs/API_docs_v70/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v70/methods/auth.signUp.md +++ b/old_docs/API_docs_v70/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v70/methods/channels.getFullChannel.md b/old_docs/API_docs_v70/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v70/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v70/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v70/methods/contacts.resolveUsername.md b/old_docs/API_docs_v70/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v70/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v70/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v70/methods/messages.acceptEncryption.md b/old_docs/API_docs_v70/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v70/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v70/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v70/methods/messages.discardEncryption.md b/old_docs/API_docs_v70/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v70/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v70/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/messages.getDhConfig.md b/old_docs/API_docs_v70/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v70/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v70/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v70/methods/messages.getFullChat.md b/old_docs/API_docs_v70/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v70/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v70/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v70/methods/messages.receivedQueue.md b/old_docs/API_docs_v70/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v70/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v70/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v70/methods/messages.requestEncryption.md b/old_docs/API_docs_v70/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v70/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v70/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v70/methods/phone.acceptCall.md b/old_docs/API_docs_v70/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v70/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v70/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v70/methods/phone.confirmCall.md b/old_docs/API_docs_v70/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v70/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v70/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v70/methods/phone.discardCall.md b/old_docs/API_docs_v70/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v70/methods/phone.discardCall.md +++ b/old_docs/API_docs_v70/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v70/methods/phone.requestCall.md b/old_docs/API_docs_v70/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v70/methods/phone.requestCall.md +++ b/old_docs/API_docs_v70/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v70/methods/updates.getChannelDifference.md b/old_docs/API_docs_v70/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v70/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v70/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v70/methods/updates.getDifference.md b/old_docs/API_docs_v70/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v70/methods/updates.getDifference.md +++ b/old_docs/API_docs_v70/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v70/methods/updates.getState.md b/old_docs/API_docs_v70/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v70/methods/updates.getState.md +++ b/old_docs/API_docs_v70/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v70/methods/upload.getCdnFile.md b/old_docs/API_docs_v70/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v70/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v70/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v70/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v70/methods/upload.getCdnFileHashes.md index 3b67f5c9..03a69bc1 100644 --- a/old_docs/API_docs_v70/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v70/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v70/methods/upload.getFile.md b/old_docs/API_docs_v70/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v70/methods/upload.getFile.md +++ b/old_docs/API_docs_v70/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v70/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v70/methods/upload.reuploadCdnFile.md index 382ec1ac..ad15e14c 100644 --- a/old_docs/API_docs_v70/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v70/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/upload.saveFilePart.md b/old_docs/API_docs_v70/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v70/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v70/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/users.getFullUser.md b/old_docs/API_docs_v70/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v70/methods/users.getFullUser.md +++ b/old_docs/API_docs_v70/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v71/methods/README.md b/old_docs/API_docs_v71/methods/README.md index c192a379..bcccc038 100644 --- a/old_docs/API_docs_v71/methods/README.md +++ b/old_docs/API_docs_v71/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -52,14 +50,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -134,8 +122,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Do not send answer to provided request: rpc_drop_answer -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -162,8 +148,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -196,8 +180,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -222,8 +204,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -238,8 +218,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get saved GIFs: messages.getSavedGifs @@ -302,12 +280,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -348,12 +320,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -368,8 +336,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Requests Diffie-hellman parameters for key exchange: req_DH_params @@ -384,30 +350,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -418,8 +370,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -438,10 +388,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -458,8 +404,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -470,14 +414,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -486,20 +426,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -522,5 +456,69 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v71/methods/account.getPasswordSettings.md b/old_docs/API_docs_v71/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v71/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v71/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v71/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v71/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v71/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v71/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v71/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/auth.checkPassword.md b/old_docs/API_docs_v71/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v71/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v71/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v71/methods/auth.exportAuthorization.md b/old_docs/API_docs_v71/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v71/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v71/methods/auth.importAuthorization.md b/old_docs/API_docs_v71/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v71/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v71/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v71/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v71/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v71/methods/auth.logOut.md b/old_docs/API_docs_v71/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v71/methods/auth.logOut.md +++ b/old_docs/API_docs_v71/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v71/methods/auth.sendCode.md b/old_docs/API_docs_v71/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v71/methods/auth.sendCode.md +++ b/old_docs/API_docs_v71/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v71/methods/auth.signIn.md b/old_docs/API_docs_v71/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v71/methods/auth.signIn.md +++ b/old_docs/API_docs_v71/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v71/methods/auth.signUp.md b/old_docs/API_docs_v71/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v71/methods/auth.signUp.md +++ b/old_docs/API_docs_v71/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v71/methods/channels.getFullChannel.md b/old_docs/API_docs_v71/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v71/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v71/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v71/methods/contacts.resolveUsername.md b/old_docs/API_docs_v71/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v71/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v71/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v71/methods/messages.acceptEncryption.md b/old_docs/API_docs_v71/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v71/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v71/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v71/methods/messages.discardEncryption.md b/old_docs/API_docs_v71/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v71/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v71/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/messages.getDhConfig.md b/old_docs/API_docs_v71/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v71/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v71/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v71/methods/messages.getFullChat.md b/old_docs/API_docs_v71/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v71/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v71/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v71/methods/messages.receivedQueue.md b/old_docs/API_docs_v71/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v71/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v71/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v71/methods/messages.requestEncryption.md b/old_docs/API_docs_v71/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v71/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v71/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v71/methods/phone.acceptCall.md b/old_docs/API_docs_v71/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v71/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v71/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v71/methods/phone.confirmCall.md b/old_docs/API_docs_v71/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v71/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v71/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v71/methods/phone.discardCall.md b/old_docs/API_docs_v71/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v71/methods/phone.discardCall.md +++ b/old_docs/API_docs_v71/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v71/methods/phone.requestCall.md b/old_docs/API_docs_v71/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v71/methods/phone.requestCall.md +++ b/old_docs/API_docs_v71/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v71/methods/updates.getChannelDifference.md b/old_docs/API_docs_v71/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v71/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v71/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v71/methods/updates.getDifference.md b/old_docs/API_docs_v71/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v71/methods/updates.getDifference.md +++ b/old_docs/API_docs_v71/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v71/methods/updates.getState.md b/old_docs/API_docs_v71/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v71/methods/updates.getState.md +++ b/old_docs/API_docs_v71/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v71/methods/upload.getCdnFile.md b/old_docs/API_docs_v71/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v71/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v71/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v71/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v71/methods/upload.getCdnFileHashes.md index 3b67f5c9..03a69bc1 100644 --- a/old_docs/API_docs_v71/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v71/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v71/methods/upload.getFile.md b/old_docs/API_docs_v71/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v71/methods/upload.getFile.md +++ b/old_docs/API_docs_v71/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v71/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v71/methods/upload.reuploadCdnFile.md index 382ec1ac..ad15e14c 100644 --- a/old_docs/API_docs_v71/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v71/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/upload.saveFilePart.md b/old_docs/API_docs_v71/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v71/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v71/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/users.getFullUser.md b/old_docs/API_docs_v71/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v71/methods/users.getFullUser.md +++ b/old_docs/API_docs_v71/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v72/methods/README.md b/old_docs/API_docs_v72/methods/README.md index d83d1b38..65e339e9 100644 --- a/old_docs/API_docs_v72/methods/README.md +++ b/old_docs/API_docs_v72/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -52,14 +50,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -136,8 +124,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Do not send answer to provided request: rpc_drop_answer -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -164,8 +150,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -198,8 +182,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get future salts: get_future_salts * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores @@ -226,8 +208,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -242,8 +222,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get recently used `t.me` links: help.getRecentMeUrls @@ -310,12 +288,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -358,12 +330,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -378,8 +346,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Requests Diffie-hellman parameters for key exchange: req_DH_params @@ -394,30 +360,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -428,8 +380,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -448,10 +398,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -468,8 +414,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -480,14 +424,10 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer @@ -496,20 +436,14 @@ Use this method to respond to such pre-checkout queries. * Sets client diffie-hellman parameters: set_client_DH_params -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -532,5 +466,69 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v72/methods/account.getPasswordSettings.md b/old_docs/API_docs_v72/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v72/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v72/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v72/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v72/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v72/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v72/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v72/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/auth.checkPassword.md b/old_docs/API_docs_v72/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v72/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v72/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v72/methods/auth.exportAuthorization.md b/old_docs/API_docs_v72/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v72/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v72/methods/auth.importAuthorization.md b/old_docs/API_docs_v72/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v72/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v72/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v72/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v72/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v72/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v72/methods/auth.logOut.md b/old_docs/API_docs_v72/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v72/methods/auth.logOut.md +++ b/old_docs/API_docs_v72/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v72/methods/auth.sendCode.md b/old_docs/API_docs_v72/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v72/methods/auth.sendCode.md +++ b/old_docs/API_docs_v72/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v72/methods/auth.signIn.md b/old_docs/API_docs_v72/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v72/methods/auth.signIn.md +++ b/old_docs/API_docs_v72/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v72/methods/auth.signUp.md b/old_docs/API_docs_v72/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v72/methods/auth.signUp.md +++ b/old_docs/API_docs_v72/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v72/methods/channels.getFullChannel.md b/old_docs/API_docs_v72/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v72/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v72/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v72/methods/contacts.resolveUsername.md b/old_docs/API_docs_v72/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v72/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v72/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v72/methods/messages.acceptEncryption.md b/old_docs/API_docs_v72/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v72/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v72/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v72/methods/messages.discardEncryption.md b/old_docs/API_docs_v72/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v72/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v72/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/messages.getDhConfig.md b/old_docs/API_docs_v72/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v72/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v72/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v72/methods/messages.getFullChat.md b/old_docs/API_docs_v72/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v72/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v72/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v72/methods/messages.receivedQueue.md b/old_docs/API_docs_v72/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v72/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v72/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v72/methods/messages.requestEncryption.md b/old_docs/API_docs_v72/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v72/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v72/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v72/methods/phone.acceptCall.md b/old_docs/API_docs_v72/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v72/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v72/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v72/methods/phone.confirmCall.md b/old_docs/API_docs_v72/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v72/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v72/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v72/methods/phone.discardCall.md b/old_docs/API_docs_v72/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v72/methods/phone.discardCall.md +++ b/old_docs/API_docs_v72/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v72/methods/phone.requestCall.md b/old_docs/API_docs_v72/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v72/methods/phone.requestCall.md +++ b/old_docs/API_docs_v72/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v72/methods/updates.getChannelDifference.md b/old_docs/API_docs_v72/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v72/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v72/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v72/methods/updates.getDifference.md b/old_docs/API_docs_v72/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v72/methods/updates.getDifference.md +++ b/old_docs/API_docs_v72/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v72/methods/updates.getState.md b/old_docs/API_docs_v72/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v72/methods/updates.getState.md +++ b/old_docs/API_docs_v72/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v72/methods/upload.getCdnFile.md b/old_docs/API_docs_v72/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v72/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v72/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v72/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v72/methods/upload.getCdnFileHashes.md index 3b67f5c9..03a69bc1 100644 --- a/old_docs/API_docs_v72/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v72/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v72/methods/upload.getFile.md b/old_docs/API_docs_v72/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v72/methods/upload.getFile.md +++ b/old_docs/API_docs_v72/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v72/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v72/methods/upload.reuploadCdnFile.md index 382ec1ac..ad15e14c 100644 --- a/old_docs/API_docs_v72/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v72/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/upload.saveFilePart.md b/old_docs/API_docs_v72/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v72/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v72/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/users.getFullUser.md b/old_docs/API_docs_v72/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v72/methods/users.getFullUser.md +++ b/old_docs/API_docs_v72/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v73/methods/README.md b/old_docs/API_docs_v73/methods/README.md index c0192d39..3682c08e 100644 --- a/old_docs/API_docs_v73/methods/README.md +++ b/old_docs/API_docs_v73/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -52,14 +50,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -130,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -158,8 +144,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -192,8 +176,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -218,8 +200,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -234,8 +214,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get recently used `t.me` links: help.getRecentMeUrls @@ -302,12 +280,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -346,12 +318,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -366,8 +334,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -378,30 +344,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -412,8 +364,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -430,10 +380,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -452,8 +398,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -464,34 +408,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -516,5 +450,69 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v73/methods/account.getPasswordSettings.md b/old_docs/API_docs_v73/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v73/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v73/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v73/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v73/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v73/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v73/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v73/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/auth.checkPassword.md b/old_docs/API_docs_v73/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v73/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v73/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v73/methods/auth.exportAuthorization.md b/old_docs/API_docs_v73/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v73/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v73/methods/auth.importAuthorization.md b/old_docs/API_docs_v73/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v73/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v73/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v73/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v73/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v73/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v73/methods/auth.logOut.md b/old_docs/API_docs_v73/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v73/methods/auth.logOut.md +++ b/old_docs/API_docs_v73/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v73/methods/auth.sendCode.md b/old_docs/API_docs_v73/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v73/methods/auth.sendCode.md +++ b/old_docs/API_docs_v73/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v73/methods/auth.signIn.md b/old_docs/API_docs_v73/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v73/methods/auth.signIn.md +++ b/old_docs/API_docs_v73/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v73/methods/auth.signUp.md b/old_docs/API_docs_v73/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v73/methods/auth.signUp.md +++ b/old_docs/API_docs_v73/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v73/methods/channels.getFullChannel.md b/old_docs/API_docs_v73/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v73/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v73/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v73/methods/contacts.resolveUsername.md b/old_docs/API_docs_v73/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v73/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v73/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v73/methods/messages.acceptEncryption.md b/old_docs/API_docs_v73/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v73/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v73/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v73/methods/messages.discardEncryption.md b/old_docs/API_docs_v73/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v73/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v73/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/messages.getDhConfig.md b/old_docs/API_docs_v73/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v73/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v73/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v73/methods/messages.getFullChat.md b/old_docs/API_docs_v73/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v73/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v73/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v73/methods/messages.receivedQueue.md b/old_docs/API_docs_v73/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v73/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v73/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v73/methods/messages.requestEncryption.md b/old_docs/API_docs_v73/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v73/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v73/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v73/methods/phone.acceptCall.md b/old_docs/API_docs_v73/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v73/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v73/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v73/methods/phone.confirmCall.md b/old_docs/API_docs_v73/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v73/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v73/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v73/methods/phone.discardCall.md b/old_docs/API_docs_v73/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v73/methods/phone.discardCall.md +++ b/old_docs/API_docs_v73/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v73/methods/phone.requestCall.md b/old_docs/API_docs_v73/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v73/methods/phone.requestCall.md +++ b/old_docs/API_docs_v73/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v73/methods/updates.getChannelDifference.md b/old_docs/API_docs_v73/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v73/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v73/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v73/methods/updates.getDifference.md b/old_docs/API_docs_v73/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v73/methods/updates.getDifference.md +++ b/old_docs/API_docs_v73/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v73/methods/updates.getState.md b/old_docs/API_docs_v73/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v73/methods/updates.getState.md +++ b/old_docs/API_docs_v73/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v73/methods/upload.getCdnFile.md b/old_docs/API_docs_v73/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v73/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v73/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v73/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v73/methods/upload.getCdnFileHashes.md index 3b67f5c9..03a69bc1 100644 --- a/old_docs/API_docs_v73/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v73/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v73/methods/upload.getFile.md b/old_docs/API_docs_v73/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v73/methods/upload.getFile.md +++ b/old_docs/API_docs_v73/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v73/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v73/methods/upload.reuploadCdnFile.md index 382ec1ac..ad15e14c 100644 --- a/old_docs/API_docs_v73/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v73/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/upload.saveFilePart.md b/old_docs/API_docs_v73/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v73/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v73/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/users.getFullUser.md b/old_docs/API_docs_v73/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v73/methods/users.getFullUser.md +++ b/old_docs/API_docs_v73/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v75/methods/README.md b/old_docs/API_docs_v75/methods/README.md index fbb1fd84..a499a8ff 100644 --- a/old_docs/API_docs_v75/methods/README.md +++ b/old_docs/API_docs_v75/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Add GIF to saved gifs list: messages.saveGif * Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet @@ -52,14 +50,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -130,8 +118,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -156,8 +142,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -190,8 +174,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -216,8 +198,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -232,8 +212,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get recent stickers: messages.getRecentStickers * Get recently used `t.me` links: help.getRecentMeUrls @@ -306,12 +284,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin * Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read: channels.readHistory @@ -350,12 +322,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -370,8 +338,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -384,30 +350,16 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -418,8 +370,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -436,10 +386,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -458,8 +404,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send typing event by the current user to a secret chat.: messages.setEncryptedTyping * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group.: messages.setTyping @@ -470,34 +414,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -522,5 +456,69 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v75/methods/account.getPasswordSettings.md b/old_docs/API_docs_v75/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v75/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v75/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v75/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v75/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v75/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v75/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v75/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v75/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v75/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v75/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v75/methods/auth.checkPassword.md b/old_docs/API_docs_v75/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v75/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v75/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v75/methods/auth.exportAuthorization.md b/old_docs/API_docs_v75/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v75/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v75/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v75/methods/auth.importAuthorization.md b/old_docs/API_docs_v75/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v75/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v75/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v75/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v75/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v75/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v75/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v75/methods/auth.logOut.md b/old_docs/API_docs_v75/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v75/methods/auth.logOut.md +++ b/old_docs/API_docs_v75/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v75/methods/auth.sendCode.md b/old_docs/API_docs_v75/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v75/methods/auth.sendCode.md +++ b/old_docs/API_docs_v75/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v75/methods/auth.signIn.md b/old_docs/API_docs_v75/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v75/methods/auth.signIn.md +++ b/old_docs/API_docs_v75/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v75/methods/auth.signUp.md b/old_docs/API_docs_v75/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v75/methods/auth.signUp.md +++ b/old_docs/API_docs_v75/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v75/methods/channels.getFullChannel.md b/old_docs/API_docs_v75/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v75/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v75/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v75/methods/contacts.resolveUsername.md b/old_docs/API_docs_v75/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v75/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v75/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v75/methods/messages.acceptEncryption.md b/old_docs/API_docs_v75/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v75/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v75/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v75/methods/messages.discardEncryption.md b/old_docs/API_docs_v75/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v75/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v75/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v75/methods/messages.getDhConfig.md b/old_docs/API_docs_v75/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v75/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v75/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v75/methods/messages.getFullChat.md b/old_docs/API_docs_v75/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v75/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v75/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v75/methods/messages.receivedQueue.md b/old_docs/API_docs_v75/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v75/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v75/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v75/methods/messages.requestEncryption.md b/old_docs/API_docs_v75/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v75/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v75/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v75/methods/phone.acceptCall.md b/old_docs/API_docs_v75/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v75/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v75/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v75/methods/phone.confirmCall.md b/old_docs/API_docs_v75/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v75/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v75/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v75/methods/phone.discardCall.md b/old_docs/API_docs_v75/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v75/methods/phone.discardCall.md +++ b/old_docs/API_docs_v75/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v75/methods/phone.requestCall.md b/old_docs/API_docs_v75/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v75/methods/phone.requestCall.md +++ b/old_docs/API_docs_v75/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v75/methods/updates.getChannelDifference.md b/old_docs/API_docs_v75/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v75/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v75/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v75/methods/updates.getDifference.md b/old_docs/API_docs_v75/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v75/methods/updates.getDifference.md +++ b/old_docs/API_docs_v75/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v75/methods/updates.getState.md b/old_docs/API_docs_v75/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v75/methods/updates.getState.md +++ b/old_docs/API_docs_v75/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v75/methods/upload.getCdnFile.md b/old_docs/API_docs_v75/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v75/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v75/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v75/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v75/methods/upload.getCdnFileHashes.md index 3b67f5c9..03a69bc1 100644 --- a/old_docs/API_docs_v75/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v75/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v75/methods/upload.getFile.md b/old_docs/API_docs_v75/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v75/methods/upload.getFile.md +++ b/old_docs/API_docs_v75/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v75/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v75/methods/upload.reuploadCdnFile.md index 382ec1ac..ad15e14c 100644 --- a/old_docs/API_docs_v75/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v75/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md) diff --git a/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v75/methods/upload.saveFilePart.md b/old_docs/API_docs_v75/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v75/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v75/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v75/methods/users.getFullUser.md b/old_docs/API_docs_v75/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v75/methods/users.getFullUser.md +++ b/old_docs/API_docs_v75/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v81/methods/README.md b/old_docs/API_docs_v81/methods/README.md index 8076aa0d..f2d2e5eb 100644 --- a/old_docs/API_docs_v81/methods/README.md +++ b/old_docs/API_docs_v81/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,14 +52,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -132,8 +120,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -160,10 +146,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -202,8 +184,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -232,8 +212,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -248,8 +226,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -328,12 +304,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -378,12 +348,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -400,8 +366,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -414,32 +378,18 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -450,8 +400,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -468,10 +416,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -494,8 +438,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -512,34 +454,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -568,5 +500,71 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v81/methods/account.getPasswordSettings.md b/old_docs/API_docs_v81/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v81/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v81/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v81/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v81/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v81/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v81/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v81/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v81/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v81/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v81/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v81/methods/auth.checkPassword.md b/old_docs/API_docs_v81/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v81/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v81/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v81/methods/auth.exportAuthorization.md b/old_docs/API_docs_v81/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v81/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v81/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v81/methods/auth.importAuthorization.md b/old_docs/API_docs_v81/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v81/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v81/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v81/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v81/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v81/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v81/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v81/methods/auth.logOut.md b/old_docs/API_docs_v81/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v81/methods/auth.logOut.md +++ b/old_docs/API_docs_v81/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v81/methods/auth.sendCode.md b/old_docs/API_docs_v81/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v81/methods/auth.sendCode.md +++ b/old_docs/API_docs_v81/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v81/methods/auth.signIn.md b/old_docs/API_docs_v81/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v81/methods/auth.signIn.md +++ b/old_docs/API_docs_v81/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v81/methods/auth.signUp.md b/old_docs/API_docs_v81/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v81/methods/auth.signUp.md +++ b/old_docs/API_docs_v81/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v81/methods/channels.getFullChannel.md b/old_docs/API_docs_v81/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v81/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v81/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v81/methods/contacts.resolveUsername.md b/old_docs/API_docs_v81/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v81/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v81/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v81/methods/messages.acceptEncryption.md b/old_docs/API_docs_v81/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v81/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v81/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v81/methods/messages.discardEncryption.md b/old_docs/API_docs_v81/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v81/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v81/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v81/methods/messages.getDhConfig.md b/old_docs/API_docs_v81/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v81/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v81/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v81/methods/messages.getFullChat.md b/old_docs/API_docs_v81/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v81/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v81/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v81/methods/messages.receivedQueue.md b/old_docs/API_docs_v81/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v81/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v81/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v81/methods/messages.requestEncryption.md b/old_docs/API_docs_v81/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v81/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v81/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v81/methods/phone.acceptCall.md b/old_docs/API_docs_v81/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v81/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v81/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v81/methods/phone.confirmCall.md b/old_docs/API_docs_v81/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v81/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v81/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v81/methods/phone.discardCall.md b/old_docs/API_docs_v81/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v81/methods/phone.discardCall.md +++ b/old_docs/API_docs_v81/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v81/methods/phone.requestCall.md b/old_docs/API_docs_v81/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v81/methods/phone.requestCall.md +++ b/old_docs/API_docs_v81/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v81/methods/updates.getChannelDifference.md b/old_docs/API_docs_v81/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v81/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v81/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v81/methods/updates.getDifference.md b/old_docs/API_docs_v81/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v81/methods/updates.getDifference.md +++ b/old_docs/API_docs_v81/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v81/methods/updates.getState.md b/old_docs/API_docs_v81/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v81/methods/updates.getState.md +++ b/old_docs/API_docs_v81/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v81/methods/upload.getCdnFile.md b/old_docs/API_docs_v81/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v81/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v81/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v81/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v81/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v81/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v81/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v81/methods/upload.getFile.md b/old_docs/API_docs_v81/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v81/methods/upload.getFile.md +++ b/old_docs/API_docs_v81/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v81/methods/upload.getFileHashes.md b/old_docs/API_docs_v81/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v81/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v81/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v81/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v81/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v81/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v81/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v81/methods/upload.saveFilePart.md b/old_docs/API_docs_v81/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v81/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v81/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v81/methods/users.getFullUser.md b/old_docs/API_docs_v81/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v81/methods/users.getFullUser.md +++ b/old_docs/API_docs_v81/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v82/methods/README.md b/old_docs/API_docs_v82/methods/README.md index cb9ffc84..712c6ad6 100644 --- a/old_docs/API_docs_v82/methods/README.md +++ b/old_docs/API_docs_v82/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,14 +52,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -88,12 +80,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -132,8 +120,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -162,10 +148,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -206,8 +188,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -236,8 +216,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -252,8 +230,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -332,12 +308,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -384,12 +354,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -406,8 +372,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -420,32 +384,18 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -456,8 +406,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -474,10 +422,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -500,8 +444,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -518,34 +460,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -574,5 +506,71 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v82/methods/account.getPasswordSettings.md b/old_docs/API_docs_v82/methods/account.getPasswordSettings.md index e5ed2f08..dcdae61a 100644 --- a/old_docs/API_docs_v82/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v82/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v82/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v82/methods/account.updatePasswordSettings.md index 1ec31f5c..91a742a5 100644 --- a/old_docs/API_docs_v82/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v82/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|current\_password\_hash|[bytes](../types/bytes.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v82/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v82/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v82/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v82/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v82/methods/auth.checkPassword.md b/old_docs/API_docs_v82/methods/auth.checkPassword.md index 4b94be4d..db65cb56 100644 --- a/old_docs/API_docs_v82/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v82/methods/auth.checkPassword.md @@ -1,13 +1,13 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v82/methods/auth.exportAuthorization.md b/old_docs/API_docs_v82/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v82/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v82/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v82/methods/auth.importAuthorization.md b/old_docs/API_docs_v82/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v82/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v82/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v82/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v82/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v82/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v82/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v82/methods/auth.logOut.md b/old_docs/API_docs_v82/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v82/methods/auth.logOut.md +++ b/old_docs/API_docs_v82/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v82/methods/auth.sendCode.md b/old_docs/API_docs_v82/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v82/methods/auth.sendCode.md +++ b/old_docs/API_docs_v82/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v82/methods/auth.signIn.md b/old_docs/API_docs_v82/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v82/methods/auth.signIn.md +++ b/old_docs/API_docs_v82/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v82/methods/auth.signUp.md b/old_docs/API_docs_v82/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v82/methods/auth.signUp.md +++ b/old_docs/API_docs_v82/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v82/methods/channels.getFullChannel.md b/old_docs/API_docs_v82/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v82/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v82/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v82/methods/contacts.resolveUsername.md b/old_docs/API_docs_v82/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v82/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v82/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v82/methods/messages.acceptEncryption.md b/old_docs/API_docs_v82/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v82/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v82/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v82/methods/messages.discardEncryption.md b/old_docs/API_docs_v82/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v82/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v82/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v82/methods/messages.getDhConfig.md b/old_docs/API_docs_v82/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v82/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v82/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v82/methods/messages.getFullChat.md b/old_docs/API_docs_v82/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v82/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v82/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v82/methods/messages.receivedQueue.md b/old_docs/API_docs_v82/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v82/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v82/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v82/methods/messages.requestEncryption.md b/old_docs/API_docs_v82/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v82/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v82/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v82/methods/phone.acceptCall.md b/old_docs/API_docs_v82/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v82/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v82/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v82/methods/phone.confirmCall.md b/old_docs/API_docs_v82/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v82/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v82/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v82/methods/phone.discardCall.md b/old_docs/API_docs_v82/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v82/methods/phone.discardCall.md +++ b/old_docs/API_docs_v82/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v82/methods/phone.requestCall.md b/old_docs/API_docs_v82/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v82/methods/phone.requestCall.md +++ b/old_docs/API_docs_v82/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v82/methods/updates.getChannelDifference.md b/old_docs/API_docs_v82/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v82/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v82/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v82/methods/updates.getDifference.md b/old_docs/API_docs_v82/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v82/methods/updates.getDifference.md +++ b/old_docs/API_docs_v82/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v82/methods/updates.getState.md b/old_docs/API_docs_v82/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v82/methods/updates.getState.md +++ b/old_docs/API_docs_v82/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v82/methods/upload.getCdnFile.md b/old_docs/API_docs_v82/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v82/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v82/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v82/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v82/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v82/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v82/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v82/methods/upload.getFile.md b/old_docs/API_docs_v82/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v82/methods/upload.getFile.md +++ b/old_docs/API_docs_v82/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v82/methods/upload.getFileHashes.md b/old_docs/API_docs_v82/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v82/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v82/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v82/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v82/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v82/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v82/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v82/methods/upload.saveFilePart.md b/old_docs/API_docs_v82/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v82/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v82/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v82/methods/users.getFullUser.md b/old_docs/API_docs_v82/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v82/methods/users.getFullUser.md +++ b/old_docs/API_docs_v82/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v86/methods/README.md b/old_docs/API_docs_v86/methods/README.md index f97baacd..6a90a953 100644 --- a/old_docs/API_docs_v86/methods/README.md +++ b/old_docs/API_docs_v86/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,14 +52,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -90,12 +82,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -134,8 +122,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -164,10 +150,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -210,8 +192,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -240,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -256,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -336,12 +312,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -388,12 +358,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -410,8 +376,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * 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](https://core.telegram.org/api/auth) for more info.: auth.resendCode @@ -424,32 +388,18 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -460,8 +410,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -478,10 +426,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -504,8 +448,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -522,34 +464,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -578,5 +510,71 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v86/methods/account.getPasswordSettings.md b/old_docs/API_docs_v86/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v86/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v86/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v86/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v86/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v86/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v86/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v86/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v86/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v86/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v86/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v86/methods/auth.checkPassword.md b/old_docs/API_docs_v86/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v86/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v86/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v86/methods/auth.exportAuthorization.md b/old_docs/API_docs_v86/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v86/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v86/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v86/methods/auth.importAuthorization.md b/old_docs/API_docs_v86/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v86/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v86/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v86/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v86/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v86/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v86/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v86/methods/auth.logOut.md b/old_docs/API_docs_v86/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v86/methods/auth.logOut.md +++ b/old_docs/API_docs_v86/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v86/methods/auth.sendCode.md b/old_docs/API_docs_v86/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v86/methods/auth.sendCode.md +++ b/old_docs/API_docs_v86/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v86/methods/auth.signIn.md b/old_docs/API_docs_v86/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v86/methods/auth.signIn.md +++ b/old_docs/API_docs_v86/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v86/methods/auth.signUp.md b/old_docs/API_docs_v86/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v86/methods/auth.signUp.md +++ b/old_docs/API_docs_v86/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v86/methods/channels.getFullChannel.md b/old_docs/API_docs_v86/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v86/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v86/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v86/methods/contacts.resolveUsername.md b/old_docs/API_docs_v86/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v86/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v86/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v86/methods/messages.acceptEncryption.md b/old_docs/API_docs_v86/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v86/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v86/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v86/methods/messages.discardEncryption.md b/old_docs/API_docs_v86/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v86/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v86/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v86/methods/messages.getDhConfig.md b/old_docs/API_docs_v86/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v86/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v86/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v86/methods/messages.getFullChat.md b/old_docs/API_docs_v86/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v86/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v86/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v86/methods/messages.receivedQueue.md b/old_docs/API_docs_v86/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v86/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v86/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v86/methods/messages.requestEncryption.md b/old_docs/API_docs_v86/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v86/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v86/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v86/methods/phone.acceptCall.md b/old_docs/API_docs_v86/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v86/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v86/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v86/methods/phone.confirmCall.md b/old_docs/API_docs_v86/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v86/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v86/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v86/methods/phone.discardCall.md b/old_docs/API_docs_v86/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v86/methods/phone.discardCall.md +++ b/old_docs/API_docs_v86/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v86/methods/phone.requestCall.md b/old_docs/API_docs_v86/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v86/methods/phone.requestCall.md +++ b/old_docs/API_docs_v86/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v86/methods/updates.getChannelDifference.md b/old_docs/API_docs_v86/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v86/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v86/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v86/methods/updates.getDifference.md b/old_docs/API_docs_v86/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v86/methods/updates.getDifference.md +++ b/old_docs/API_docs_v86/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v86/methods/updates.getState.md b/old_docs/API_docs_v86/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v86/methods/updates.getState.md +++ b/old_docs/API_docs_v86/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v86/methods/upload.getCdnFile.md b/old_docs/API_docs_v86/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v86/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v86/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v86/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v86/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v86/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v86/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v86/methods/upload.getFile.md b/old_docs/API_docs_v86/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v86/methods/upload.getFile.md +++ b/old_docs/API_docs_v86/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v86/methods/upload.getFileHashes.md b/old_docs/API_docs_v86/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v86/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v86/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v86/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v86/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v86/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v86/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v86/methods/upload.saveFilePart.md b/old_docs/API_docs_v86/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v86/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v86/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v86/methods/users.getFullUser.md b/old_docs/API_docs_v86/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v86/methods/users.getFullUser.md +++ b/old_docs/API_docs_v86/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v89/methods/README.md b/old_docs/API_docs_v89/methods/README.md index 1d3eeb6b..b220fab5 100644 --- a/old_docs/API_docs_v89/methods/README.md +++ b/old_docs/API_docs_v89/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,16 +52,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -92,12 +84,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -136,8 +124,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -166,10 +152,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -214,8 +196,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -248,8 +228,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -264,8 +242,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -348,12 +324,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -402,12 +372,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -424,8 +390,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -440,32 +404,18 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -476,8 +426,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -494,10 +442,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -520,8 +464,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -538,34 +480,24 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. After calling this method it is necessary to reregister the current device using the method [account.registerDevice](../methods/account.registerDevice.md): auth.resetAuthorizations -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -596,5 +528,71 @@ After calling this method it is necessary to reregister the current device using * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).: account.updateDeviceLocked -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v89/methods/account.getPasswordSettings.md b/old_docs/API_docs_v89/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v89/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v89/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v89/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v89/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v89/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v89/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v89/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v89/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v89/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v89/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v89/methods/auth.checkPassword.md b/old_docs/API_docs_v89/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v89/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v89/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v89/methods/auth.exportAuthorization.md b/old_docs/API_docs_v89/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v89/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v89/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v89/methods/auth.importAuthorization.md b/old_docs/API_docs_v89/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v89/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v89/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v89/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v89/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v89/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v89/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v89/methods/auth.logOut.md b/old_docs/API_docs_v89/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v89/methods/auth.logOut.md +++ b/old_docs/API_docs_v89/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v89/methods/auth.sendCode.md b/old_docs/API_docs_v89/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v89/methods/auth.sendCode.md +++ b/old_docs/API_docs_v89/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v89/methods/auth.signIn.md b/old_docs/API_docs_v89/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v89/methods/auth.signIn.md +++ b/old_docs/API_docs_v89/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v89/methods/auth.signUp.md b/old_docs/API_docs_v89/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v89/methods/auth.signUp.md +++ b/old_docs/API_docs_v89/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v89/methods/channels.getFullChannel.md b/old_docs/API_docs_v89/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v89/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v89/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v89/methods/contacts.resolveUsername.md b/old_docs/API_docs_v89/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v89/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v89/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v89/methods/messages.acceptEncryption.md b/old_docs/API_docs_v89/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v89/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v89/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v89/methods/messages.discardEncryption.md b/old_docs/API_docs_v89/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v89/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v89/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v89/methods/messages.getDhConfig.md b/old_docs/API_docs_v89/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v89/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v89/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v89/methods/messages.getFullChat.md b/old_docs/API_docs_v89/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v89/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v89/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v89/methods/messages.receivedQueue.md b/old_docs/API_docs_v89/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v89/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v89/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v89/methods/messages.requestEncryption.md b/old_docs/API_docs_v89/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v89/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v89/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v89/methods/phone.acceptCall.md b/old_docs/API_docs_v89/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v89/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v89/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v89/methods/phone.confirmCall.md b/old_docs/API_docs_v89/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v89/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v89/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v89/methods/phone.discardCall.md b/old_docs/API_docs_v89/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v89/methods/phone.discardCall.md +++ b/old_docs/API_docs_v89/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v89/methods/phone.requestCall.md b/old_docs/API_docs_v89/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v89/methods/phone.requestCall.md +++ b/old_docs/API_docs_v89/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v89/methods/updates.getChannelDifference.md b/old_docs/API_docs_v89/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v89/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v89/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v89/methods/updates.getDifference.md b/old_docs/API_docs_v89/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v89/methods/updates.getDifference.md +++ b/old_docs/API_docs_v89/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v89/methods/updates.getState.md b/old_docs/API_docs_v89/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v89/methods/updates.getState.md +++ b/old_docs/API_docs_v89/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v89/methods/upload.getCdnFile.md b/old_docs/API_docs_v89/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v89/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v89/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v89/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v89/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v89/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v89/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v89/methods/upload.getFile.md b/old_docs/API_docs_v89/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v89/methods/upload.getFile.md +++ b/old_docs/API_docs_v89/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v89/methods/upload.getFileHashes.md b/old_docs/API_docs_v89/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v89/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v89/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v89/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v89/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v89/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v89/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v89/methods/upload.saveFilePart.md b/old_docs/API_docs_v89/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v89/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v89/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v89/methods/users.getFullUser.md b/old_docs/API_docs_v89/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v89/methods/users.getFullUser.md +++ b/old_docs/API_docs_v89/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v91/methods/README.md b/old_docs/API_docs_v91/methods/README.md index 546c2465..cb710367 100644 --- a/old_docs/API_docs_v91/methods/README.md +++ b/old_docs/API_docs_v91/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -54,16 +52,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -92,12 +84,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -138,8 +126,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -166,10 +152,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -218,8 +200,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -252,8 +232,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -270,8 +248,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -352,12 +328,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -406,12 +376,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -428,8 +394,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -444,34 +408,20 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -484,8 +434,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -502,10 +450,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -528,8 +472,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -546,24 +488,16 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -572,8 +506,6 @@ After calling this method it is necessary to reregister the current device using * Toggle contact sign up notifications: account.setContactSignUpNotification -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -608,5 +540,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v91/methods/account.getPasswordSettings.md b/old_docs/API_docs_v91/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v91/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v91/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v91/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v91/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v91/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v91/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v91/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v91/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v91/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v91/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v91/methods/auth.checkPassword.md b/old_docs/API_docs_v91/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v91/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v91/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v91/methods/auth.exportAuthorization.md b/old_docs/API_docs_v91/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v91/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v91/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v91/methods/auth.importAuthorization.md b/old_docs/API_docs_v91/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v91/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v91/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v91/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v91/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v91/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v91/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v91/methods/auth.logOut.md b/old_docs/API_docs_v91/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v91/methods/auth.logOut.md +++ b/old_docs/API_docs_v91/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v91/methods/auth.sendCode.md b/old_docs/API_docs_v91/methods/auth.sendCode.md index 7e15fba1..bd922a48 100644 --- a/old_docs/API_docs_v91/methods/auth.sendCode.md +++ b/old_docs/API_docs_v91/methods/auth.sendCode.md @@ -1,23 +1,23 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|allow\_flashcall|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|current\_number|[Bool](../types/Bool.md) | Use phoneLogin instead | Optional| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| +|allow\_flashcall|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|current\_number|[Bool](../types/Bool.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Optional| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v91/methods/auth.signIn.md b/old_docs/API_docs_v91/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v91/methods/auth.signIn.md +++ b/old_docs/API_docs_v91/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v91/methods/auth.signUp.md b/old_docs/API_docs_v91/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v91/methods/auth.signUp.md +++ b/old_docs/API_docs_v91/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v91/methods/channels.getFullChannel.md b/old_docs/API_docs_v91/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v91/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v91/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v91/methods/contacts.resolveUsername.md b/old_docs/API_docs_v91/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v91/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v91/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v91/methods/messages.acceptEncryption.md b/old_docs/API_docs_v91/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v91/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v91/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v91/methods/messages.discardEncryption.md b/old_docs/API_docs_v91/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v91/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v91/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v91/methods/messages.getDhConfig.md b/old_docs/API_docs_v91/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v91/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v91/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v91/methods/messages.getFullChat.md b/old_docs/API_docs_v91/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v91/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v91/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v91/methods/messages.receivedQueue.md b/old_docs/API_docs_v91/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v91/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v91/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v91/methods/messages.requestEncryption.md b/old_docs/API_docs_v91/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v91/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v91/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v91/methods/phone.acceptCall.md b/old_docs/API_docs_v91/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v91/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v91/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v91/methods/phone.confirmCall.md b/old_docs/API_docs_v91/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v91/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v91/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v91/methods/phone.discardCall.md b/old_docs/API_docs_v91/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v91/methods/phone.discardCall.md +++ b/old_docs/API_docs_v91/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v91/methods/phone.requestCall.md b/old_docs/API_docs_v91/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v91/methods/phone.requestCall.md +++ b/old_docs/API_docs_v91/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v91/methods/updates.getChannelDifference.md b/old_docs/API_docs_v91/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v91/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v91/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v91/methods/updates.getDifference.md b/old_docs/API_docs_v91/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v91/methods/updates.getDifference.md +++ b/old_docs/API_docs_v91/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v91/methods/updates.getState.md b/old_docs/API_docs_v91/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v91/methods/updates.getState.md +++ b/old_docs/API_docs_v91/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v91/methods/upload.getCdnFile.md b/old_docs/API_docs_v91/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v91/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v91/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v91/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v91/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v91/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v91/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v91/methods/upload.getFile.md b/old_docs/API_docs_v91/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v91/methods/upload.getFile.md +++ b/old_docs/API_docs_v91/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v91/methods/upload.getFileHashes.md b/old_docs/API_docs_v91/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v91/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v91/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v91/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v91/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v91/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v91/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v91/methods/upload.saveFilePart.md b/old_docs/API_docs_v91/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v91/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v91/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v91/methods/users.getFullUser.md b/old_docs/API_docs_v91/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v91/methods/users.getFullUser.md +++ b/old_docs/API_docs_v91/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v95/methods/README.md b/old_docs/API_docs_v95/methods/README.md index de8815cc..b8881dab 100644 --- a/old_docs/API_docs_v95/methods/README.md +++ b/old_docs/API_docs_v95/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -52,16 +50,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy @@ -90,12 +82,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -140,8 +128,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -166,10 +152,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -218,8 +200,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -254,8 +234,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -272,8 +250,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -358,12 +334,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -412,12 +382,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -434,8 +400,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -450,34 +414,20 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * Returns basic user info according to their identifiers.: users.getUsers * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -490,8 +440,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -508,10 +456,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -534,8 +478,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -552,24 +494,16 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -578,8 +512,6 @@ After calling this method it is necessary to reregister the current device using * Toggle contact sign up notifications: account.setContactSignUpNotification -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -614,5 +546,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v95/methods/account.getPasswordSettings.md b/old_docs/API_docs_v95/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v95/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v95/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v95/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v95/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v95/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v95/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v95/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v95/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v95/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v95/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v95/methods/auth.checkPassword.md b/old_docs/API_docs_v95/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v95/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v95/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v95/methods/auth.exportAuthorization.md b/old_docs/API_docs_v95/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v95/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v95/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v95/methods/auth.importAuthorization.md b/old_docs/API_docs_v95/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v95/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v95/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v95/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v95/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v95/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v95/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v95/methods/auth.logOut.md b/old_docs/API_docs_v95/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v95/methods/auth.logOut.md +++ b/old_docs/API_docs_v95/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v95/methods/auth.sendCode.md b/old_docs/API_docs_v95/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v95/methods/auth.sendCode.md +++ b/old_docs/API_docs_v95/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v95/methods/auth.signIn.md b/old_docs/API_docs_v95/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v95/methods/auth.signIn.md +++ b/old_docs/API_docs_v95/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v95/methods/auth.signUp.md b/old_docs/API_docs_v95/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v95/methods/auth.signUp.md +++ b/old_docs/API_docs_v95/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v95/methods/channels.getFullChannel.md b/old_docs/API_docs_v95/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v95/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v95/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v95/methods/contacts.resolveUsername.md b/old_docs/API_docs_v95/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v95/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v95/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v95/methods/messages.acceptEncryption.md b/old_docs/API_docs_v95/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v95/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v95/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v95/methods/messages.discardEncryption.md b/old_docs/API_docs_v95/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v95/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v95/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v95/methods/messages.getDhConfig.md b/old_docs/API_docs_v95/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v95/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v95/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v95/methods/messages.getFullChat.md b/old_docs/API_docs_v95/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v95/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v95/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v95/methods/messages.receivedQueue.md b/old_docs/API_docs_v95/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v95/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v95/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v95/methods/messages.requestEncryption.md b/old_docs/API_docs_v95/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v95/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v95/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v95/methods/phone.acceptCall.md b/old_docs/API_docs_v95/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v95/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v95/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v95/methods/phone.confirmCall.md b/old_docs/API_docs_v95/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v95/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v95/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v95/methods/phone.discardCall.md b/old_docs/API_docs_v95/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v95/methods/phone.discardCall.md +++ b/old_docs/API_docs_v95/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v95/methods/phone.requestCall.md b/old_docs/API_docs_v95/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v95/methods/phone.requestCall.md +++ b/old_docs/API_docs_v95/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v95/methods/updates.getChannelDifference.md b/old_docs/API_docs_v95/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v95/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v95/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v95/methods/updates.getDifference.md b/old_docs/API_docs_v95/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v95/methods/updates.getDifference.md +++ b/old_docs/API_docs_v95/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v95/methods/updates.getState.md b/old_docs/API_docs_v95/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v95/methods/updates.getState.md +++ b/old_docs/API_docs_v95/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v95/methods/upload.getCdnFile.md b/old_docs/API_docs_v95/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v95/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v95/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v95/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v95/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v95/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v95/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v95/methods/upload.getFile.md b/old_docs/API_docs_v95/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v95/methods/upload.getFile.md +++ b/old_docs/API_docs_v95/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v95/methods/upload.getFileHashes.md b/old_docs/API_docs_v95/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v95/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v95/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v95/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v95/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v95/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v95/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v95/methods/upload.saveFilePart.md b/old_docs/API_docs_v95/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v95/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v95/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v95/methods/users.getFullUser.md b/old_docs/API_docs_v95/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v95/methods/users.getFullUser.md +++ b/old_docs/API_docs_v95/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md) diff --git a/old_docs/API_docs_v97/methods/README.md b/old_docs/API_docs_v97/methods/README.md index 6330ef9b..789d64e4 100644 --- a/old_docs/API_docs_v97/methods/README.md +++ b/old_docs/API_docs_v97/methods/README.md @@ -30,8 +30,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept incoming call: phone.acceptCall - * Accept the new terms of service: help.acceptTermsOfService * Add GIF to saved gifs list: messages.saveGif @@ -52,16 +50,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned -* 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).: auth.bindTempAuthKey - * Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail * Cancel the login verification code: auth.cancelCode -* Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption - * Chanages chat name and sends a service message on it.: messages.editChatTitle * Change media autodownload settings: account.saveAutoDownloadSettings @@ -92,12 +84,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone -* Confirms creation of a secret chat: messages.acceptEncryption - * Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages -* Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue - * Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel * Create a stickerset, bots only.: stickers.createStickerSet @@ -142,8 +130,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Deletes the user from the blacklist.: contacts.unblock -* Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile - * Edit an inline bot message: messages.editInlineBotMessage * Edit message: messages.editMessage @@ -168,10 +154,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Forwards messages by their IDs.: messages.forwardMessages -* Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes - -* Get SHA256 hashes for verifying downloaded files: upload.getFileHashes - * Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages * Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](../constructors/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.: channels.getAdminedPublicChannels @@ -222,8 +204,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get featured stickers: messages.getFeaturedStickers -* Get full info about a channel: channels.getFullChannel - * Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores * Get highscores of a game: messages.getGameHighScores @@ -262,8 +242,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get most used peers: contacts.getTopPeers -* Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference - * Get new strings in languagepack: langpack.getDifference * Get payment receipt: payments.getPaymentReceipt @@ -280,8 +258,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Get privacy settings of current account: account.getPrivacy -* Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings - * Get promotion info of the currently-used MTProxy: help.getProxyData * Get recent stickers: messages.getRecentStickers @@ -366,12 +342,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap * Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization -* Login as a bot: auth.importBotAuthorization - -* Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization - -* Logs out the user.: auth.logOut - * Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate * Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin @@ -420,12 +390,8 @@ Use this method to respond to such pre-checkout queries. * Rate a call: phone.setCallRating -* Refuse or end running call: phone.discardCall - * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice -* Registers a validated phone number in the system.: auth.signUp - * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet * Reorder installed stickersets: messages.reorderStickerSets @@ -442,8 +408,6 @@ Use this method to respond to such pre-checkout queries. * Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam -* Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile - * Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).: auth.requestPasswordRecovery * Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail @@ -458,14 +422,10 @@ Use this method to respond to such pre-checkout queries. * Resets all notification settings from users and groups.: account.resetNotifySettings -* Resolve a @username to get peer info: contacts.resolveUsername - * Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL * Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm -* Returns a current state of updates.: updates.getState - * Returns a list of available wallpapers.: account.getWallPapers * 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: messages.getEmojiURL @@ -474,20 +434,10 @@ Use this method to respond to such pre-checkout queries. * Returns chat basic info on their IDs.: messages.getChats -* Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig - -* Returns content of a whole file or its part.: upload.getFile - * Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile * Returns current configuration, icluding data center configuration.: help.getConfig -* Returns data for copying authorization to another data-centre.: auth.exportAuthorization - -* Returns extended user info by ID.: users.getFullUser - -* Returns full chat info according to its ID.: messages.getFullChat - * Returns info on data centre nearest to the user.: help.getNearestDc * Returns information on update availability for the current application.: help.getAppUpdate @@ -500,8 +450,6 @@ Use this method to respond to such pre-checkout queries. * Returns the current user's contact list.: contacts.getContacts -* Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference - * Returns the list of blocked users.: contacts.getBlocked * Returns the list of contact statuses.: contacts.getStatuses @@ -518,10 +466,6 @@ Use this method to respond to such pre-checkout queries. * Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts -* Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart - -* Saves a part of file for futher sending to one of the methods.: upload.saveFilePart - * Saves logs of application on the server.: help.saveAppLog * Search for GIFs: messages.searchGifs @@ -544,8 +488,6 @@ Use this method to respond to such pre-checkout queries. * Send phone call debug data to server: phone.saveCallDebug -* Send the verification code for login: auth.sendCode - * Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode * Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode @@ -562,24 +504,16 @@ Use this method to respond to such pre-checkout queries. * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile -* Sends a request to start a secret chat to the user.: messages.requestEncryption - * Sends a service message to a secret chat.: messages.sendEncryptedService * Sends a text message to a secret chat.: messages.sendEncrypted -* Set a new 2FA password: account.updatePasswordSettings - * Set account self-destruction period: account.setAccountTTL * Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer -* Signs in a user with a validated phone number.: auth.signIn - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot -* Start a telegram phone call: phone.requestCall - * Submit requested order information for validation: payments.validateRequestedInfo * Terminates all user's authorized sessions except for the current one. @@ -588,8 +522,6 @@ After calling this method it is necessary to reregister the current device using * Toggle contact sign up notifications: account.setContactSignUpNotification -* Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword - * Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat * Uninstall a stickerset: messages.uninstallStickerSet @@ -624,5 +556,71 @@ After calling this method it is necessary to reregister the current device using * Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification -* [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall +* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + +* You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + +* You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + +* You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + +* You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + +* You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + +* You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + +* You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + +* You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode + +* You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFileHashes + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + +* You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + +* You cannot use this method directly: messages.receivedQueue + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings + +* You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings diff --git a/old_docs/API_docs_v97/methods/account.getPasswordSettings.md b/old_docs/API_docs_v97/methods/account.getPasswordSettings.md index 762af7d6..a7a47b1a 100644 --- a/old_docs/API_docs_v97/methods/account.getPasswordSettings.md +++ b/old_docs/API_docs_v97/methods/account.getPasswordSettings.md @@ -1,19 +1,19 @@ --- title: account.getPasswordSettings -description: Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.getPasswordSettings [Back to methods index](index.md) -Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on) +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) diff --git a/old_docs/API_docs_v97/methods/account.updatePasswordSettings.md b/old_docs/API_docs_v97/methods/account.updatePasswordSettings.md index c7422b2a..242011a6 100644 --- a/old_docs/API_docs_v97/methods/account.updatePasswordSettings.md +++ b/old_docs/API_docs_v97/methods/account.updatePasswordSettings.md @@ -1,20 +1,20 @@ --- title: account.updatePasswordSettings -description: Set a new 2FA password +description: You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.updatePasswordSettings [Back to methods index](index.md) -Set a new 2FA password +You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The old password (see [SRP](https://core.telegram.org/api/srp)) | Yes| -|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | The new password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| +|new\_settings|[account.PasswordInputSettings](../types/account.PasswordInputSettings.md) | You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v97/methods/auth.bindTempAuthKey.md b/old_docs/API_docs_v97/methods/auth.bindTempAuthKey.md index 5a03570a..9740c66c 100644 --- a/old_docs/API_docs_v97/methods/auth.bindTempAuthKey.md +++ b/old_docs/API_docs_v97/methods/auth.bindTempAuthKey.md @@ -1,26 +1,22 @@ --- title: auth.bindTempAuthKey -description: 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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +description: You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.bindTempAuthKey [Back to methods index](index.md) -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. - -For more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs). +You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|perm\_auth\_key\_id|[long](../types/long.md) | Permanent auth\_key\_id to bind to | Yes| -|nonce|[long](../types/long.md) | Random long from [Binding message contents](#binding-message-contents) | Yes| -|expires\_at|[int](../types/int.md) | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) | Yes| -|encrypted\_message|[bytes](../types/bytes.md) | See [Generating encrypted\_message](#generating-encrypted-message) | Yes| +|perm\_auth\_key\_id|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|nonce|[long](../types/long.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|expires\_at|[int](../types/int.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| +|encrypted\_message|[bytes](../types/bytes.md) | You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v97/methods/auth.checkPassword.md b/old_docs/API_docs_v97/methods/auth.checkPassword.md index 9f7d47fe..ad2a88a2 100644 --- a/old_docs/API_docs_v97/methods/auth.checkPassword.md +++ b/old_docs/API_docs_v97/methods/auth.checkPassword.md @@ -1,19 +1,19 @@ --- title: auth.checkPassword -description: Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +description: You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.checkPassword [Back to methods index](index.md) -Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp). +You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | The account's password (see [SRP](https://core.telegram.org/api/srp)) | Yes| +|password|[InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md) | You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v97/methods/auth.exportAuthorization.md b/old_docs/API_docs_v97/methods/auth.exportAuthorization.md index c52d60cf..72063a2b 100644 --- a/old_docs/API_docs_v97/methods/auth.exportAuthorization.md +++ b/old_docs/API_docs_v97/methods/auth.exportAuthorization.md @@ -1,19 +1,19 @@ --- title: auth.exportAuthorization -description: Returns data for copying authorization to another data-centre. +description: You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.exportAuthorization [Back to methods index](index.md) -Returns data for copying authorization to another data-centre. +You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|dc\_id|[int](../types/int.md) | Number of a target data-centre | Yes| +|dc\_id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) diff --git a/old_docs/API_docs_v97/methods/auth.importAuthorization.md b/old_docs/API_docs_v97/methods/auth.importAuthorization.md index 940dc846..d9c13751 100644 --- a/old_docs/API_docs_v97/methods/auth.importAuthorization.md +++ b/old_docs/API_docs_v97/methods/auth.importAuthorization.md @@ -1,20 +1,20 @@ --- title: auth.importAuthorization -description: Logs in a user using a key transmitted from his native data-centre. +description: You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importAuthorization [Back to methods index](index.md) -Logs in a user using a key transmitted from his native data-centre. +You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[int](../types/int.md) | User ID | Yes| -|bytes|[bytes](../types/bytes.md) | Authorization key | Yes| +|id|[int](../types/int.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v97/methods/auth.importBotAuthorization.md b/old_docs/API_docs_v97/methods/auth.importBotAuthorization.md index c4cc90e2..3161d6be 100644 --- a/old_docs/API_docs_v97/methods/auth.importBotAuthorization.md +++ b/old_docs/API_docs_v97/methods/auth.importBotAuthorization.md @@ -1,21 +1,21 @@ --- title: auth.importBotAuthorization -description: Login as a bot +description: You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.importBotAuthorization [Back to methods index](index.md) -Login as a bot +You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|api\_id|[int](../types/int.md) | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) | Yes| -|bot\_auth\_token|[string](../types/string.md) | Bot token (see [bots](https://core.telegram.org/bots)) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|bot\_auth\_token|[string](../types/string.md) | You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v97/methods/auth.logOut.md b/old_docs/API_docs_v97/methods/auth.logOut.md index 14e30397..074461d4 100644 --- a/old_docs/API_docs_v97/methods/auth.logOut.md +++ b/old_docs/API_docs_v97/methods/auth.logOut.md @@ -1,13 +1,13 @@ --- title: auth.logOut -description: Logs out the user. +description: You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.logOut [Back to methods index](index.md) -Logs out the user. +You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) diff --git a/old_docs/API_docs_v97/methods/auth.sendCode.md b/old_docs/API_docs_v97/methods/auth.sendCode.md index 496ab218..be14f1bf 100644 --- a/old_docs/API_docs_v97/methods/auth.sendCode.md +++ b/old_docs/API_docs_v97/methods/auth.sendCode.md @@ -1,22 +1,22 @@ --- title: auth.sendCode -description: Send the verification code for login +description: You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.sendCode [Back to methods index](index.md) -Send the verification code for login +You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in international format | Yes| -|api\_id|[int](../types/int.md) | Application identifier (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|api\_hash|[string](../types/string.md) | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) | Yes| -|settings|[CodeSettings](../types/CodeSettings.md) | Settings for the code type to send | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_id|[int](../types/int.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|api\_hash|[string](../types/string.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|settings|[CodeSettings](../types/CodeSettings.md) | You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_SentCode](../types/auth_SentCode.md) diff --git a/old_docs/API_docs_v97/methods/auth.signIn.md b/old_docs/API_docs_v97/methods/auth.signIn.md index 40bb8721..54812a2e 100644 --- a/old_docs/API_docs_v97/methods/auth.signIn.md +++ b/old_docs/API_docs_v97/methods/auth.signIn.md @@ -1,21 +1,21 @@ --- title: auth.signIn -description: Signs in a user with a validated phone number. +description: You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signIn [Back to methods index](index.md) -Signs in a user with a validated phone number. +You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID, obtained from [auth.sendCode](../methods/auth.sendCode.md) | Yes| -|phone\_code|[string](../types/string.md) | Valid numerical code from the SMS-message | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v97/methods/auth.signUp.md b/old_docs/API_docs_v97/methods/auth.signUp.md index 707cc727..2aca2bfa 100644 --- a/old_docs/API_docs_v97/methods/auth.signUp.md +++ b/old_docs/API_docs_v97/methods/auth.signUp.md @@ -1,23 +1,23 @@ --- title: auth.signUp -description: Registers a validated phone number in the system. +description: You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: auth.signUp [Back to methods index](index.md) -Registers a validated phone number in the system. +You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|phone\_number|[string](../types/string.md) | Phone number in the international format | Yes| -|phone\_code\_hash|[string](../types/string.md) | SMS-message ID | Yes| +|phone\_number|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|phone\_code\_hash|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| |phone\_code|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| -|first\_name|[string](../types/string.md) | New user first name | Yes| -|last\_name|[string](../types/string.md) | New user last name | Yes| +|first\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| +|last\_name|[string](../types/string.md) | You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [auth\_Authorization](../types/auth_Authorization.md) diff --git a/old_docs/API_docs_v97/methods/channels.getFullChannel.md b/old_docs/API_docs_v97/methods/channels.getFullChannel.md index f416272f..08dc21bb 100644 --- a/old_docs/API_docs_v97/methods/channels.getFullChannel.md +++ b/old_docs/API_docs_v97/methods/channels.getFullChannel.md @@ -1,19 +1,19 @@ --- title: channels.getFullChannel -description: Get full info about a channel +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.getFullChannel [Back to methods index](index.md) -Get full info about a channel +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel to get info about | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [messages\_ChatFull](../types/messages_ChatFull.md) diff --git a/old_docs/API_docs_v97/methods/contacts.resolveUsername.md b/old_docs/API_docs_v97/methods/contacts.resolveUsername.md index a6e3a54c..05e3d854 100644 --- a/old_docs/API_docs_v97/methods/contacts.resolveUsername.md +++ b/old_docs/API_docs_v97/methods/contacts.resolveUsername.md @@ -1,19 +1,19 @@ --- title: contacts.resolveUsername -description: Resolve a @username to get peer info +description: You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: contacts.resolveUsername [Back to methods index](index.md) -Resolve a @username to get peer info +You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|username|[string](../types/string.md) | @username to resolve | Yes| +|username|[string](../types/string.md) | You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Yes| ### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) diff --git a/old_docs/API_docs_v97/methods/messages.acceptEncryption.md b/old_docs/API_docs_v97/methods/messages.acceptEncryption.md index 2b7d93bb..134bfa8e 100644 --- a/old_docs/API_docs_v97/methods/messages.acceptEncryption.md +++ b/old_docs/API_docs_v97/methods/messages.acceptEncryption.md @@ -1,21 +1,21 @@ --- title: messages.acceptEncryption -description: Confirms creation of a secret chat +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.acceptEncryption [Back to methods index](index.md) -Confirms creation of a secret chat +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | Secret chat ID | Yes| -|g\_b|[bytes](../types/bytes.md) | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| -|key\_fingerprint|[long](../types/long.md) | 64-bit fingerprint of the received key | Yes| +|peer|[Secret chat ID, Update, EncryptedMessage or InputEncryptedChat](../types/InputEncryptedChat.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v97/methods/messages.discardEncryption.md b/old_docs/API_docs_v97/methods/messages.discardEncryption.md index 9bfd2bf9..5198bc3e 100644 --- a/old_docs/API_docs_v97/methods/messages.discardEncryption.md +++ b/old_docs/API_docs_v97/methods/messages.discardEncryption.md @@ -1,19 +1,19 @@ --- title: messages.discardEncryption -description: Cancels a request for creation and/or delete info on secret chat. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.discardEncryption [Back to methods index](index.md) -Cancels a request for creation and/or delete info on secret chat. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|chat\_id|[int](../types/int.md) | Secret chat ID | Yes| +|chat\_id|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v97/methods/messages.getDhConfig.md b/old_docs/API_docs_v97/methods/messages.getDhConfig.md index 65d6ab7a..88ea4ab3 100644 --- a/old_docs/API_docs_v97/methods/messages.getDhConfig.md +++ b/old_docs/API_docs_v97/methods/messages.getDhConfig.md @@ -1,20 +1,20 @@ --- title: messages.getDhConfig -description: Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +description: You cannot use this method directly, instead use $MadelineProto->getDhConfig(); image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getDhConfig [Back to methods index](index.md) -Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. +You cannot use this method directly, instead use $MadelineProto->getDhConfig(); ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|version|[int](../types/int.md) | Value of the **version** parameter from [messages.dhConfig](../constructors/messages.dhConfig.md), avialable at the client | Yes| -|random\_length|[int](../types/int.md) | Length of the required random sequence | Yes| +|version|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| +|random\_length|[int](../types/int.md) | You cannot use this method directly, instead use $MadelineProto->getDhConfig(); | Yes| ### Return type: [messages\_DhConfig](../types/messages_DhConfig.md) diff --git a/old_docs/API_docs_v97/methods/messages.getFullChat.md b/old_docs/API_docs_v97/methods/messages.getFullChat.md index 45cc7d5c..abf23e21 100644 --- a/old_docs/API_docs_v97/methods/messages.getFullChat.md +++ b/old_docs/API_docs_v97/methods/messages.getFullChat.md @@ -1,13 +1,13 @@ --- title: messages.getFullChat -description: Returns full chat info according to its ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.getFullChat [Back to methods index](index.md) -Returns full chat info according to its ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: diff --git a/old_docs/API_docs_v97/methods/messages.receivedQueue.md b/old_docs/API_docs_v97/methods/messages.receivedQueue.md index b3a6cd49..a466633f 100644 --- a/old_docs/API_docs_v97/methods/messages.receivedQueue.md +++ b/old_docs/API_docs_v97/methods/messages.receivedQueue.md @@ -1,19 +1,19 @@ --- title: messages.receivedQueue -description: Confirms receipt of messages in a secret chat by client, cancels push notifications. +description: You cannot use this method directly image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.receivedQueue [Back to methods index](index.md) -Confirms receipt of messages in a secret chat by client, cancels push notifications. +You cannot use this method directly ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|max\_qts|[int](../types/int.md) | Maximum qts value available at the client | Yes| +|max\_qts|[int](../types/int.md) | You cannot use this method directly | Yes| ### Return type: [Vector\_of\_long](../types/long.md) diff --git a/old_docs/API_docs_v97/methods/messages.requestEncryption.md b/old_docs/API_docs_v97/methods/messages.requestEncryption.md index e4b13ace..e052591b 100644 --- a/old_docs/API_docs_v97/methods/messages.requestEncryption.md +++ b/old_docs/API_docs_v97/methods/messages.requestEncryption.md @@ -1,20 +1,20 @@ --- title: messages.requestEncryption -description: Sends a request to start a secret chat to the user. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: messages.requestEncryption [Back to methods index](index.md) -Sends a request to start a secret chat to the user. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| -|g\_a|[bytes](../types/bytes.md) | `A = g ^ a mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Optional| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats | Yes| ### Return type: [EncryptedChat](../types/EncryptedChat.md) diff --git a/old_docs/API_docs_v97/methods/phone.acceptCall.md b/old_docs/API_docs_v97/methods/phone.acceptCall.md index 02a391c5..f5c58f01 100644 --- a/old_docs/API_docs_v97/methods/phone.acceptCall.md +++ b/old_docs/API_docs_v97/methods/phone.acceptCall.md @@ -1,21 +1,21 @@ --- title: phone.acceptCall -description: Accept incoming call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.acceptCall [Back to methods index](index.md) -Accept incoming call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The call to accept | Yes| -|g\_b|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_b|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v97/methods/phone.confirmCall.md b/old_docs/API_docs_v97/methods/phone.confirmCall.md index 58c7c805..468307cc 100644 --- a/old_docs/API_docs_v97/methods/phone.confirmCall.md +++ b/old_docs/API_docs_v97/methods/phone.confirmCall.md @@ -1,22 +1,22 @@ --- title: phone.confirmCall -description: [Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.confirmCall [Back to methods index](index.md) -[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|g\_a|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|key\_fingerprint|[long](../types/long.md) | Key fingerprint | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|g\_a|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|key\_fingerprint|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v97/methods/phone.discardCall.md b/old_docs/API_docs_v97/methods/phone.discardCall.md index f6d81523..ffaa18ea 100644 --- a/old_docs/API_docs_v97/methods/phone.discardCall.md +++ b/old_docs/API_docs_v97/methods/phone.discardCall.md @@ -1,22 +1,22 @@ --- title: phone.discardCall -description: Refuse or end running call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.discardCall [Back to methods index](index.md) -Refuse or end running call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|peer|[InputPhoneCall](../types/InputPhoneCall.md) | The phone call | Yes| -|duration|[int](../types/int.md) | Call duration | Yes| -|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Why was the call discarded | Yes| -|connection\_id|[long](../types/long.md) | Preferred libtgvoip relay ID | Yes| +|peer|[InputPhoneCall](../types/InputPhoneCall.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|duration|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|connection\_id|[long](../types/long.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v97/methods/phone.requestCall.md b/old_docs/API_docs_v97/methods/phone.requestCall.md index 4973caf7..c8e828f2 100644 --- a/old_docs/API_docs_v97/methods/phone.requestCall.md +++ b/old_docs/API_docs_v97/methods/phone.requestCall.md @@ -1,21 +1,21 @@ --- title: phone.requestCall -description: Start a telegram phone call +description: You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: phone.requestCall [Back to methods index](index.md) -Start a telegram phone call +You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Destination of the phone call | Optional| -|g\_a\_hash|[bytes](../types/bytes.md) | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls) | Yes| -|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Phone call settings | Yes| +|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Optional| +|g\_a\_hash|[bytes](../types/bytes.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| +|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls | Yes| ### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md) diff --git a/old_docs/API_docs_v97/methods/updates.getChannelDifference.md b/old_docs/API_docs_v97/methods/updates.getChannelDifference.md index 340e2ac0..5675cd33 100644 --- a/old_docs/API_docs_v97/methods/updates.getChannelDifference.md +++ b/old_docs/API_docs_v97/methods/updates.getChannelDifference.md @@ -1,23 +1,23 @@ --- title: updates.getChannelDifference -description: Returns the difference between the current state of updates of a certain channel and transmitted. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getChannelDifference [Back to methods index](index.md) -Returns the difference between the current state of updates of a certain channel and transmitted. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|force|[Bool](../types/Bool.md) | Set to true to skip some possibly unneeded updates and reduce server-side load | Optional| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| -|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Messsage filter | Optional| -|pts|[int](../types/int.md) | Persistent timestamp (see [updates](https://core.telegram.org/api/updates)) | Yes| -|limit|[int](../types/int.md) | How many updates to fetch, max `100000`
Ordinary (non-bot) users are supposed to pass `10-100` | Yes| +|force|[Bool](../types/Bool.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md) diff --git a/old_docs/API_docs_v97/methods/updates.getDifference.md b/old_docs/API_docs_v97/methods/updates.getDifference.md index 72352cb4..bcfac4e2 100644 --- a/old_docs/API_docs_v97/methods/updates.getDifference.md +++ b/old_docs/API_docs_v97/methods/updates.getDifference.md @@ -1,22 +1,22 @@ --- title: updates.getDifference -description: Get new [updates](https://core.telegram.org/api/updates). +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getDifference [Back to methods index](index.md) -Get new [updates](https://core.telegram.org/api/updates). +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|pts|[int](../types/int.md) | PTS, see [updates](https://core.telegram.org/api/updates). | Yes| -|pts\_total\_limit|[int](../types/int.md) | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](../constructors/updates.differenceTooLong.md) 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 | Optional| +|pts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| +|pts\_total\_limit|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Optional| |date|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| -|qts|[int](../types/int.md) | QTS, see [updates](https://core.telegram.org/api/updates). | Yes| +|qts|[int](../types/int.md) | You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates | Yes| ### Return type: [updates\_Difference](../types/updates_Difference.md) diff --git a/old_docs/API_docs_v97/methods/updates.getState.md b/old_docs/API_docs_v97/methods/updates.getState.md index b3bc8358..c591408a 100644 --- a/old_docs/API_docs_v97/methods/updates.getState.md +++ b/old_docs/API_docs_v97/methods/updates.getState.md @@ -1,13 +1,13 @@ --- title: updates.getState -description: Returns a current state of updates. +description: You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: updates.getState [Back to methods index](index.md) -Returns a current state of updates. +You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates diff --git a/old_docs/API_docs_v97/methods/upload.getCdnFile.md b/old_docs/API_docs_v97/methods/upload.getCdnFile.md index 7a6adf1f..a3c928b2 100644 --- a/old_docs/API_docs_v97/methods/upload.getCdnFile.md +++ b/old_docs/API_docs_v97/methods/upload.getCdnFile.md @@ -1,21 +1,21 @@ --- title: upload.getCdnFile -description: Download a [CDN](https://core.telegram.org/cdn) file. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFile [Back to methods index](index.md) -Download a [CDN](https://core.telegram.org/cdn) file. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|offset|[int](../types/int.md) | Offset of chunk to download | Yes| -|limit|[int](../types/int.md) | Length of chunk to download | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_CdnFile](../types/upload_CdnFile.md) diff --git a/old_docs/API_docs_v97/methods/upload.getCdnFileHashes.md b/old_docs/API_docs_v97/methods/upload.getCdnFileHashes.md index 28a2cc90..ed7589b5 100644 --- a/old_docs/API_docs_v97/methods/upload.getCdnFileHashes.md +++ b/old_docs/API_docs_v97/methods/upload.getCdnFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getCdnFileHashes -description: Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getCdnFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to start getting hashes | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v97/methods/upload.getFile.md b/old_docs/API_docs_v97/methods/upload.getFile.md index 46ee11eb..8aba03d4 100644 --- a/old_docs/API_docs_v97/methods/upload.getFile.md +++ b/old_docs/API_docs_v97/methods/upload.getFile.md @@ -1,21 +1,21 @@ --- title: upload.getFile -description: Returns content of a whole file or its part. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFile [Back to methods index](index.md) -Returns content of a whole file or its part. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File location | Yes| -|offset|[int](../types/int.md) | Number of bytes to be skipped | Yes| -|limit|[int](../types/int.md) | Number of bytes to be returned | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [upload\_File](../types/upload_File.md) diff --git a/old_docs/API_docs_v97/methods/upload.getFileHashes.md b/old_docs/API_docs_v97/methods/upload.getFileHashes.md index 0a9059db..3783a742 100644 --- a/old_docs/API_docs_v97/methods/upload.getFileHashes.md +++ b/old_docs/API_docs_v97/methods/upload.getFileHashes.md @@ -1,20 +1,20 @@ --- title: upload.getFileHashes -description: Get SHA256 hashes for verifying downloaded files +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.getFileHashes [Back to methods index](index.md) -Get SHA256 hashes for verifying downloaded files +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|location|[InputFileLocation](../types/InputFileLocation.md) | File | Yes| -|offset|[int](../types/int.md) | Offset from which to get file hashes | Yes| +|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v97/methods/upload.reuploadCdnFile.md b/old_docs/API_docs_v97/methods/upload.reuploadCdnFile.md index f94384a1..c10a2ca8 100644 --- a/old_docs/API_docs_v97/methods/upload.reuploadCdnFile.md +++ b/old_docs/API_docs_v97/methods/upload.reuploadCdnFile.md @@ -1,20 +1,20 @@ --- title: upload.reuploadCdnFile -description: Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.reuploadCdnFile [Back to methods index](index.md) -Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn). +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_token|[bytes](../types/bytes.md) | File token | Yes| -|request\_token|[bytes](../types/bytes.md) | Request token | Yes| +|file\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|request\_token|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Vector\_of\_FileHash](../types/FileHash.md) diff --git a/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md index f4e45730..f47605fc 100644 --- a/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md @@ -1,22 +1,22 @@ --- title: upload.saveBigFilePart -description: Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveBigFilePart [Back to methods index](index.md) -Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file id, created by the client | Yes| -|file\_part|[int](../types/int.md) | Part sequence number | Yes| -|file\_total\_parts|[int](../types/int.md) | Total number of parts | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, part contents | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_total\_parts|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v97/methods/upload.saveFilePart.md b/old_docs/API_docs_v97/methods/upload.saveFilePart.md index 1a1b6f54..ec5acc5e 100644 --- a/old_docs/API_docs_v97/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v97/methods/upload.saveFilePart.md @@ -1,21 +1,21 @@ --- title: upload.saveFilePart -description: Saves a part of file for futher sending to one of the methods. +description: You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: upload.saveFilePart [Back to methods index](index.md) -Saves a part of file for futher sending to one of the methods. +You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|file\_id|[long](../types/long.md) | Random file identifier created by the client | Yes| -|file\_part|[int](../types/int.md) | Numerical order of a part | Yes| -|bytes|[bytes](../types/bytes.md) | Binary data, contend of a part | Yes| +|file\_id|[long](../types/long.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|file\_part|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| +|bytes|[bytes](../types/bytes.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v97/methods/users.getFullUser.md b/old_docs/API_docs_v97/methods/users.getFullUser.md index 65af6022..9fba7dad 100644 --- a/old_docs/API_docs_v97/methods/users.getFullUser.md +++ b/old_docs/API_docs_v97/methods/users.getFullUser.md @@ -1,19 +1,19 @@ --- title: users.getFullUser -description: Returns extended user info by ID. +description: You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: users.getFullUser [Back to methods index](index.md) -Returns extended user info by ID. +You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | User ID | Optional| +|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info) | Optional| ### Return type: [UserFull](../types/UserFull.md)