Docufix
This commit is contained in:
parent
ef70d7e1ba
commit
dde6007ade
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">Accept incoming call: phone.acceptCall</a>
|
||||
|
||||
* <a href="help.acceptTermsOfService.html" name="help.acceptTermsOfService">Accept the new terms of service: help.acceptTermsOfService</a>
|
||||
|
||||
* <a href="messages.saveGif.html" name="messages.saveGif">Add GIF to saved gifs list: messages.saveGif</a>
|
||||
@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="channels.editBanned.html" name="channels.editBanned">Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned</a>
|
||||
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">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</a>
|
||||
|
||||
* <a href="account.cancelPasswordEmail.html" name="account.cancelPasswordEmail">Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail</a>
|
||||
|
||||
* <a href="auth.cancelCode.html" name="auth.cancelCode">Cancel the login verification code: auth.cancelCode</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.editChatTitle.html" name="messages.editChatTitle">Chanages chat name and sends a service message on it.: messages.editChatTitle</a>
|
||||
|
||||
* <a href="account.saveAutoDownloadSettings.html" name="account.saveAutoDownloadSettings">Change media autodownload settings: account.saveAutoDownloadSettings</a>
|
||||
@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.confirmPhone.html" name="account.confirmPhone">Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">Confirms creation of a secret chat: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.receivedMessages.html" name="messages.receivedMessages">Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue</a>
|
||||
|
||||
* <a href="channels.createChannel.html" name="channels.createChannel">Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel</a>
|
||||
|
||||
* <a href="stickers.createStickerSet.html" name="stickers.createStickerSet">Create a stickerset, bots only.: stickers.createStickerSet</a>
|
||||
@ -150,8 +138,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.unblock.html" name="contacts.unblock">Deletes the user from the blacklist.: contacts.unblock</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="upload.getCdnFile">Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile</a>
|
||||
|
||||
* <a href="messages.editInlineBotMessage.html" name="messages.editInlineBotMessage">Edit an inline bot message: messages.editInlineBotMessage</a>
|
||||
|
||||
* <a href="channels.editLocation.html" name="channels.editLocation">Edit location of geogroup: channels.editLocation</a>
|
||||
@ -180,10 +166,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.forwardMessages.html" name="messages.forwardMessages">Forwards messages by their IDs.: messages.forwardMessages</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="upload.getCdnFileHashes">Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="upload.getFileHashes">Get SHA256 hashes for verifying downloaded files: upload.getFileHashes</a>
|
||||
|
||||
* <a href="channels.getMessages.html" name="channels.getMessages">Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages</a>
|
||||
|
||||
* <a href="channels.getAdminedPublicChannels.html" name="channels.getAdminedPublicChannels">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</a>
|
||||
@ -238,8 +220,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.getFeaturedStickers.html" name="messages.getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">Get full info about a channel: channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getInlineGameHighScores.html" name="messages.getInlineGameHighScores">Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores</a>
|
||||
|
||||
* <a href="messages.getGameHighScores.html" name="messages.getGameHighScores">Get highscores of a game: messages.getGameHighScores</a>
|
||||
@ -284,8 +264,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.getTopPeers.html" name="contacts.getTopPeers">Get most used peers: contacts.getTopPeers</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference</a>
|
||||
|
||||
* <a href="langpack.getDifference.html" name="langpack.getDifference">Get new strings in languagepack: langpack.getDifference</a>
|
||||
|
||||
* <a href="payments.getPaymentReceipt.html" name="payments.getPaymentReceipt">Get payment receipt: payments.getPaymentReceipt</a>
|
||||
@ -302,8 +280,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.getPrivacy.html" name="account.getPrivacy">Get privacy settings of current account: account.getPrivacy</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="help.getProxyData.html" name="help.getProxyData">Get promotion info of the currently-used MTProxy: help.getProxyData</a>
|
||||
|
||||
* <a href="messages.getRecentStickers.html" name="messages.getRecentStickers">Get recent stickers: messages.getRecentStickers</a>
|
||||
@ -398,12 +374,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.resetWebAuthorization.html" name="account.resetWebAuthorization">Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">Login as a bot: auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">Logs out the user.: auth.logOut</a>
|
||||
|
||||
* <a href="help.getTermsOfServiceUpdate.html" name="help.getTermsOfServiceUpdate">Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate</a>
|
||||
|
||||
* <a href="messages.editChatAdmin.html" name="messages.editChatAdmin">Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin</a>
|
||||
@ -452,12 +422,8 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="phone.setCallRating.html" name="phone.setCallRating">Rate a call: phone.setCallRating</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">Refuse or end running call: phone.discardCall</a>
|
||||
|
||||
* <a href="account.registerDevice.html" name="account.registerDevice">Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">Registers a validated phone number in the system.: auth.signUp</a>
|
||||
|
||||
* <a href="stickers.removeStickerFromSet.html" name="stickers.removeStickerFromSet">Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet</a>
|
||||
|
||||
* <a href="messages.reorderStickerSets.html" name="messages.reorderStickerSets">Reorder installed stickersets: messages.reorderStickerSets</a>
|
||||
@ -474,8 +440,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="channels.reportSpam.html" name="channels.reportSpam">Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="upload.reuploadCdnFile">Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile</a>
|
||||
|
||||
* <a href="auth.requestPasswordRecovery.html" name="auth.requestPasswordRecovery">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</a>
|
||||
|
||||
* <a href="account.resendPasswordEmail.html" name="account.resendPasswordEmail">Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail</a>
|
||||
@ -490,14 +454,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="account.resetNotifySettings.html" name="account.resetNotifySettings">Resets all notification settings from users and groups.: account.resetNotifySettings</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">Resolve a @username to get peer info: contacts.resolveUsername</a>
|
||||
|
||||
* <a href="messages.getStatsURL.html" name="messages.getStatsURL">Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL</a>
|
||||
|
||||
* <a href="account.getAuthorizationForm.html" name="account.getAuthorizationForm">Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">Returns a current state of updates.: updates.getState</a>
|
||||
|
||||
* <a href="account.getWallPapers.html" name="account.getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
|
||||
* <a href="messages.getEmojiURL.html" name="messages.getEmojiURL">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</a>
|
||||
@ -506,20 +466,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getChats.html" name="messages.getChats">Returns chat basic info on their IDs.: messages.getChats</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="upload.getFile">Returns content of a whole file or its part.: upload.getFile</a>
|
||||
|
||||
* <a href="upload.getWebFile.html" name="upload.getWebFile">Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile</a>
|
||||
|
||||
* <a href="help.getConfig.html" name="help.getConfig">Returns current configuration, icluding data center configuration.: help.getConfig</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">Returns data for copying authorization to another data-centre.: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">Returns extended user info by ID.: users.getFullUser</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">Returns full chat info according to its ID.: messages.getFullChat</a>
|
||||
|
||||
* <a href="help.getNearestDc.html" name="help.getNearestDc">Returns info on data centre nearest to the user.: help.getNearestDc</a>
|
||||
|
||||
* <a href="help.getAppUpdate.html" name="help.getAppUpdate">Returns information on update availability for the current application.: help.getAppUpdate</a>
|
||||
@ -532,8 +482,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="contacts.getContacts.html" name="contacts.getContacts">Returns the current user's contact list.: contacts.getContacts</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="contacts.getBlocked.html" name="contacts.getBlocked">Returns the list of blocked users.: contacts.getBlocked</a>
|
||||
|
||||
* <a href="contacts.getStatuses.html" name="contacts.getStatuses">Returns the list of contact statuses.: contacts.getStatuses</a>
|
||||
@ -552,10 +500,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getAllDrafts.html" name="messages.getAllDrafts">Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="upload.saveBigFilePart">Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">Saves a part of file for futher sending to one of the methods.: upload.saveFilePart</a>
|
||||
|
||||
* <a href="help.saveAppLog.html" name="help.saveAppLog">Saves logs of application on the server.: help.saveAppLog</a>
|
||||
|
||||
* <a href="messages.searchGifs.html" name="messages.searchGifs">Search for GIFs: messages.searchGifs</a>
|
||||
@ -580,8 +524,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.sendScheduledMessages.html" name="messages.sendScheduledMessages">Send scheduled messages right away: messages.sendScheduledMessages</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">Send the verification code for login: auth.sendCode</a>
|
||||
|
||||
* <a href="account.sendVerifyEmailCode.html" name="account.sendVerifyEmailCode">Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode</a>
|
||||
|
||||
* <a href="account.sendVerifyPhoneCode.html" name="account.sendVerifyPhoneCode">Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode</a>
|
||||
@ -598,26 +540,18 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.sendEncryptedFile.html" name="messages.sendEncryptedFile">Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">Sends a request to start a secret chat to the user.: messages.requestEncryption</a>
|
||||
|
||||
* <a href="messages.sendEncryptedService.html" name="messages.sendEncryptedService">Sends a service message to a secret chat.: messages.sendEncryptedService</a>
|
||||
|
||||
* <a href="messages.sendEncrypted.html" name="messages.sendEncrypted">Sends a text message to a secret chat.: messages.sendEncrypted</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">Set a new 2FA password: account.updatePasswordSettings</a>
|
||||
|
||||
* <a href="account.setAccountTTL.html" name="account.setAccountTTL">Set account self-destruction period: account.setAccountTTL</a>
|
||||
|
||||
* <a href="messages.setBotCallbackAnswer.html" name="messages.setBotCallbackAnswer">Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer</a>
|
||||
|
||||
* <a href="messages.hidePeerSettingsBar.html" name="messages.hidePeerSettingsBar">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</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">Signs in a user with a validated phone number.: auth.signIn</a>
|
||||
|
||||
* <a href="messages.startBot.html" name="messages.startBot">Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">Start a telegram phone call: phone.requestCall</a>
|
||||
|
||||
* <a href="payments.validateRequestedInfo.html" name="payments.validateRequestedInfo">Submit requested order information for validation: payments.validateRequestedInfo</a>
|
||||
|
||||
* <a href="auth.resetAuthorizations.html" name="auth.resetAuthorizations">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
|
||||
|
||||
* <a href="channels.editCreator.html" name="channels.editCreator">Transfer channel ownership: channels.editCreator</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword</a>
|
||||
|
||||
* <a href="messages.migrateChat.html" name="messages.migrateChat">Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat</a>
|
||||
|
||||
* <a href="messages.uninstallStickerSet.html" name="messages.uninstallStickerSet">Uninstall a stickerset: messages.uninstallStickerSet</a>
|
||||
@ -672,5 +604,71 @@ After calling this method it is necessary to reregister the current device using
|
||||
|
||||
* <a href="account.getContactSignUpNotification.html" name="account.getContactSignUpNotification">Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall</a>
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">You cannot use this method 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</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState</a>
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="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.getCdnFile</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="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.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="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.getFile</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="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.getFileHashes</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="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.reuploadCdnFile</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="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.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">You cannot use this method directly: messages.receivedQueue</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings</a>
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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`<br>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)
|
||||
|
@ -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.<br>Simply tells the server to not return the difference if it is bigger than `pts_total_limit`<br>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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.acceptCall.html" name="phone.acceptCall">Accept incoming call: phone.acceptCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.acceptTermsOfService.html" name="help.acceptTermsOfService">Accept the new terms of service: help.acceptTermsOfService</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.saveGif.html" name="messages.saveGif">Add GIF to saved gifs list: messages.saveGif</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers.addStickerToSet.html" name="stickers.addStickerToSet">Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.: stickers.addStickerToSet</a>
|
||||
@ -195,10 +194,8 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.setDiscussionGroup.html" name="channels.setDiscussionGroup">Associate a group to a channel as [discussion group](https://telegram.org/blog/privacy-discussions-web-bots) for that channel: channels.setDiscussionGroup</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.setStickers.html" name="channels.setStickers">Associate a stickerset to the supergroup: channels.setStickers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.editBanned.html" name="channels.editBanned">Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">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.
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.cancelPasswordEmail.html" name="account.cancelPasswordEmail">Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.cancelCode.html" name="auth.cancelCode">Cancel the login verification code: auth.cancelCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.discardEncryption.html" name="messages.discardEncryption">Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editChatTitle.html" name="messages.editChatTitle">Chanages chat name and sends a service message on it.: messages.editChatTitle</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.saveAutoDownloadSettings.html" name="account.saveAutoDownloadSettings">Change media autodownload settings: account.saveAutoDownloadSettings</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.setPrivacy.html" name="account.setPrivacy">Change privacy settings of current account: account.setPrivacy</a>
|
||||
@ -214,9 +211,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.clearRecentStickers.html" name="messages.clearRecentStickers">Clear recent stickers: messages.clearRecentStickers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.clearSavedInfo.html" name="payments.clearSavedInfo">Clear saved payment information: payments.clearSavedInfo</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.confirmPhone.html" name="account.confirmPhone">Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.acceptEncryption.html" name="messages.acceptEncryption">Confirms creation of a secret chat: messages.acceptEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.receivedMessages.html" name="messages.receivedMessages">Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.receivedQueue.html" name="messages.receivedQueue">Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.createChannel.html" name="channels.createChannel">Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers.createStickerSet.html" name="stickers.createStickerSet">Create a stickerset, bots only.: stickers.createStickerSet</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.createTheme.html" name="account.createTheme">Create a theme: account.createTheme</a>
|
||||
@ -241,7 +236,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/photos.deletePhotos.html" name="photos.deletePhotos">Deletes profile photos.: photos.deletePhotos</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.deleteContacts.html" name="contacts.deleteContacts">Deletes several contacts from the list.: contacts.deleteContacts</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.unblock.html" name="contacts.unblock">Deletes the user from the blacklist.: contacts.unblock</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getCdnFile.html" name="upload.getCdnFile">Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editInlineBotMessage.html" name="messages.editInlineBotMessage">Edit an inline bot message: messages.editInlineBotMessage</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.editLocation.html" name="channels.editLocation">Edit location of geogroup: channels.editLocation</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editMessage.html" name="messages.editMessage">Edit message: messages.editMessage</a>
|
||||
@ -256,8 +250,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getMessageEditData.html" name="messages.getMessageEditData">Find out if a media message's caption can be edited: messages.getMessageEditData</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.finishTakeoutSession.html" name="account.finishTakeoutSession">Finish account takeout session: account.finishTakeoutSession</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.forwardMessages.html" name="messages.forwardMessages">Forwards messages by their IDs.: messages.forwardMessages</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getCdnFileHashes.html" name="upload.getCdnFileHashes">Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getFileHashes.html" name="upload.getFileHashes">Get SHA256 hashes for verifying downloaded files: upload.getFileHashes</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getMessages.html" name="channels.getMessages">Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getAdminedPublicChannels.html" name="channels.getAdminedPublicChannels">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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getWebPage.html" name="messages.getWebPage">Get [instant view](https://instantview.telegram.org) page: messages.getWebPage</a>
|
||||
@ -285,7 +277,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDialogUnreadMarks.html" name="messages.getDialogUnreadMarks">Get dialogs manually marked as unread: messages.getDialogUnreadMarks</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getFavedStickers.html" name="messages.getFavedStickers">Get faved stickers: messages.getFavedStickers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getFeaturedStickers.html" name="messages.getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getFullChannel.html" name="channels.getFullChannel">Get full info about a channel: channels.getFullChannel</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getInlineGameHighScores.html" name="messages.getInlineGameHighScores">Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getGameHighScores.html" name="messages.getGameHighScores">Get highscores of a game: messages.getGameHighScores</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getChannels.html" name="channels.getChannels">Get info about [channels/supergroups](https://core.telegram.org/api/channel): channels.getChannels</a>
|
||||
@ -308,7 +299,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getSplitRanges.html" name="messages.getSplitRanges">Get message ranges for saving the user's chat history: messages.getSplitRanges</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.requestUrlAuth.html" name="messages.requestUrlAuth">Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization): messages.requestUrlAuth</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.getTopPeers.html" name="contacts.getTopPeers">Get most used peers: contacts.getTopPeers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getDifference.html" name="updates.getDifference">Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/langpack.getDifference.html" name="langpack.getDifference">Get new strings in languagepack: langpack.getDifference</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.getPaymentReceipt.html" name="payments.getPaymentReceipt">Get payment receipt: payments.getPaymentReceipt</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getPeerSettings.html" name="messages.getPeerSettings">Get peer settings: messages.getPeerSettings</a>
|
||||
@ -317,7 +307,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getPollResults.html" name="messages.getPollResults">Get poll results: messages.getPollResults</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getWebPagePreview.html" name="messages.getWebPagePreview">Get preview of webpage: messages.getWebPagePreview</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getPrivacy.html" name="account.getPrivacy">Get privacy settings of current account: account.getPrivacy</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getPasswordSettings.html" name="account.getPasswordSettings">Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getProxyData.html" name="help.getProxyData">Get promotion info of the currently-used MTProxy: help.getProxyData</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getRecentStickers.html" name="messages.getRecentStickers">Get recent stickers: messages.getRecentStickers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getRecentMeUrls.html" name="help.getRecentMeUrls">Get recently used `t.me` links: help.getRecentMeUrls</a>
|
||||
@ -365,9 +354,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.leaveChannel.html" name="channels.leaveChannel">Leave a [channel/supergroup](https://core.telegram.org/api/channel): channels.leaveChannel</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.resetAuthorization.html" name="account.resetAuthorization">Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash: account.resetAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.resetWebAuthorization.html" name="account.resetWebAuthorization">Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.importBotAuthorization.html" name="auth.importBotAuthorization">Login as a bot: auth.importBotAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.importAuthorization.html" name="auth.importAuthorization">Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.logOut.html" name="auth.logOut">Logs out the user.: auth.logOut</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getTermsOfServiceUpdate.html" name="help.getTermsOfServiceUpdate">Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editChatAdmin.html" name="messages.editChatAdmin">Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.markDialogUnread.html" name="messages.markDialogUnread">Manually mark dialog as unread: messages.markDialogUnread</a>
|
||||
@ -390,9 +376,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getBotCallbackAnswer.html" name="messages.getBotCallbackAnswer">Press an inline callback button and get a callback answer from the bot: messages.getBotCallbackAnswer</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getInlineBotResults.html" name="messages.getInlineBotResults">Query an inline bot: messages.getInlineBotResults</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.setCallRating.html" name="phone.setCallRating">Rate a call: phone.setCallRating</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.discardCall.html" name="phone.discardCall">Refuse or end running call: phone.discardCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.registerDevice.html" name="account.registerDevice">Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.signUp.html" name="auth.signUp">Registers a validated phone number in the system.: auth.signUp</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers.removeStickerFromSet.html" name="stickers.removeStickerFromSet">Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reorderStickerSets.html" name="messages.reorderStickerSets">Reorder installed stickersets: messages.reorderStickerSets</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reorderPinnedDialogs.html" name="messages.reorderPinnedDialogs">Reorder pinned dialogs: messages.reorderPinnedDialogs</a>
|
||||
@ -401,7 +385,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.reportPeer.html" name="account.reportPeer">Report a peer for violation of telegram's Terms of Service: account.reportPeer</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reportEncryptedSpam.html" name="messages.reportEncryptedSpam">Report a secret chat for spam: messages.reportEncryptedSpam</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.reportSpam.html" name="channels.reportSpam">Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.reuploadCdnFile.html" name="upload.reuploadCdnFile">Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.requestPasswordRecovery.html" name="auth.requestPasswordRecovery">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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.resendPasswordEmail.html" name="account.resendPasswordEmail">Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.resendCode.html" name="auth.resendCode">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</a>
|
||||
@ -409,28 +392,20 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.resetWebAuthorizations.html" name="account.resetWebAuthorizations">Reset all active web [telegram login](https://core.telegram.org/widgets/login) sessions: account.resetWebAuthorizations</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.recoverPassword.html" name="auth.recoverPassword">Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](../methods/auth.requestPasswordRecovery.md).: auth.recoverPassword</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.resetNotifySettings.html" name="account.resetNotifySettings">Resets all notification settings from users and groups.: account.resetNotifySettings</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.resolveUsername.html" name="contacts.resolveUsername">Resolve a @username to get peer info: contacts.resolveUsername</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getStatsURL.html" name="messages.getStatsURL">Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getAuthorizationForm.html" name="account.getAuthorizationForm">Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getState.html" name="updates.getState">Returns a current state of updates.: updates.getState</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getWallPapers.html" name="account.getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getEmojiURL.html" name="messages.getEmojiURL">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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users.getUsers.html" name="users.getUsers">Returns basic user info according to their identifiers.: users.getUsers</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getChats.html" name="messages.getChats">Returns chat basic info on their IDs.: messages.getChats</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDhConfig.html" name="messages.getDhConfig">Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getFile.html" name="upload.getFile">Returns content of a whole file or its part.: upload.getFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getWebFile.html" name="upload.getWebFile">Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getConfig.html" name="help.getConfig">Returns current configuration, icluding data center configuration.: help.getConfig</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.exportAuthorization.html" name="auth.exportAuthorization">Returns data for copying authorization to another data-centre.: auth.exportAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users.getFullUser.html" name="users.getFullUser">Returns extended user info by ID.: users.getFullUser</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getFullChat.html" name="messages.getFullChat">Returns full chat info according to its ID.: messages.getFullChat</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getNearestDc.html" name="help.getNearestDc">Returns info on data centre nearest to the user.: help.getNearestDc</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getAppUpdate.html" name="help.getAppUpdate">Returns information on update availability for the current application.: help.getAppUpdate</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getNotifyExceptions.html" name="account.getNotifyExceptions">Returns list of chats with non-default notification settings: account.getNotifyExceptions</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.getInviteText.html" name="help.getInviteText">Returns text of a text message with an invitation.: help.getInviteText</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDialogs.html" name="messages.getDialogs">Returns the current user dialog list.: messages.getDialogs</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.getContacts.html" name="contacts.getContacts">Returns the current user's contact list.: contacts.getContacts</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getChannelDifference.html" name="updates.getChannelDifference">Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.getBlocked.html" name="contacts.getBlocked">Returns the list of blocked users.: contacts.getBlocked</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.getStatuses.html" name="contacts.getStatuses">Returns the list of contact statuses.: contacts.getStatuses</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getMessages.html" name="messages.getMessages">Returns the list of messages by their IDs.: messages.getMessages</a>
|
||||
@ -440,8 +415,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.saveDraft.html" name="messages.saveDraft">Save a message [draft](https://core.telegram.org/api/drafts) associated to a chat.: messages.saveDraft</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.saveTheme.html" name="account.saveTheme">Save a theme: account.saveTheme</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getAllDrafts.html" name="messages.getAllDrafts">Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.saveBigFilePart.html" name="upload.saveBigFilePart">Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.saveFilePart.html" name="upload.saveFilePart">Saves a part of file for futher sending to one of the methods.: upload.saveFilePart</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help.saveAppLog.html" name="help.saveAppLog">Saves logs of application on the server.: help.saveAppLog</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.searchGifs.html" name="messages.searchGifs">Search for GIFs: messages.searchGifs</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.searchGlobal.html" name="messages.searchGlobal">Search for messages and peers globally: messages.searchGlobal</a>
|
||||
@ -454,7 +427,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.sendConfirmPhoneCode.html" name="account.sendConfirmPhoneCode">Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.sendConfirmPhoneCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.saveCallDebug.html" name="phone.saveCallDebug">Send phone call debug data to server: phone.saveCallDebug</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendScheduledMessages.html" name="messages.sendScheduledMessages">Send scheduled messages right away: messages.sendScheduledMessages</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.sendCode.html" name="auth.sendCode">Send the verification code for login: auth.sendCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.sendVerifyEmailCode.html" name="account.sendVerifyEmailCode">Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.sendVerifyPhoneCode.html" name="account.sendVerifyPhoneCode">Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.setEncryptedTyping.html" name="messages.setEncryptedTyping">Send typing event by the current user to a secret chat.: messages.setEncryptedTyping</a>
|
||||
@ -463,22 +435,17 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.sendCustomRequest.html" name="bots.sendCustomRequest">Sends a custom request; for bots only: bots.sendCustomRequest</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendMessage.html" name="messages.sendMessage">Sends a message to a chat: messages.sendMessage</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendEncryptedFile.html" name="messages.sendEncryptedFile">Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.requestEncryption.html" name="messages.requestEncryption">Sends a request to start a secret chat to the user.: messages.requestEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendEncryptedService.html" name="messages.sendEncryptedService">Sends a service message to a secret chat.: messages.sendEncryptedService</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendEncrypted.html" name="messages.sendEncrypted">Sends a text message to a secret chat.: messages.sendEncrypted</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.updatePasswordSettings.html" name="account.updatePasswordSettings">Set a new 2FA password: account.updatePasswordSettings</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.setAccountTTL.html" name="account.setAccountTTL">Set account self-destruction period: account.setAccountTTL</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.setBotCallbackAnswer.html" name="messages.setBotCallbackAnswer">Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.hidePeerSettingsBar.html" name="messages.hidePeerSettingsBar">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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.signIn.html" name="auth.signIn">Signs in a user with a validated phone number.: auth.signIn</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.startBot.html" name="messages.startBot">Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.requestCall.html" name="phone.requestCall">Start a telegram phone call: phone.requestCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.validateRequestedInfo.html" name="payments.validateRequestedInfo">Submit requested order information for validation: payments.validateRequestedInfo</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.resetAuthorizations.html" name="auth.resetAuthorizations">Terminates all user's authorized sessions except for the current one.
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.setContactSignUpNotification.html" name="account.setContactSignUpNotification">Toggle contact sign up notifications: account.setContactSignUpNotification</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.toggleSlowMode.html" name="channels.toggleSlowMode">Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds: channels.toggleSlowMode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.editCreator.html" name="channels.editCreator">Transfer channel ownership: channels.editCreator</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.checkPassword.html" name="auth.checkPassword">Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.migrateChat.html" name="messages.migrateChat">Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.uninstallStickerSet.html" name="messages.uninstallStickerSet">Uninstall a stickerset: messages.uninstallStickerSet</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.updateTheme.html" name="account.updateTheme">Update theme: account.updateTheme</a>
|
||||
@ -499,7 +466,40 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.sendVote.html" name="messages.sendVote">Vote in a [poll](../constructors/poll.md): messages.sendVote</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.updateDeviceLocked.html" name="account.updateDeviceLocked">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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getContactSignUpNotification.html" name="account.getContactSignUpNotification">Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.confirmCall.html" name="phone.confirmCall">[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">You cannot use this method 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</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getDhConfig.html" name="messages.getDhConfig">You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.acceptEncryption.html" name="messages.acceptEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.discardEncryption.html" name="messages.discardEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.requestEncryption.html" name="messages.requestEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getChannelDifference.html" name="updates.getChannelDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getDifference.html" name="updates.getDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/updates.getState.html" name="updates.getState">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.acceptCall.html" name="phone.acceptCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.confirmCall.html" name="phone.confirmCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.discardCall.html" name="phone.discardCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.requestCall.html" name="phone.requestCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.exportAuthorization.html" name="auth.exportAuthorization">You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.importAuthorization.html" name="auth.importAuthorization">You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.importBotAuthorization.html" name="auth.importBotAuthorization">You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.signIn.html" name="auth.signIn">You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.signUp.html" name="auth.signUp">You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.checkPassword.html" name="auth.checkPassword">You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getFullChannel.html" name="channels.getFullChannel">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getFullChat.html" name="messages.getFullChat">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users.getFullUser.html" name="users.getFullUser">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.logOut.html" name="auth.logOut">You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.sendCode.html" name="auth.sendCode">You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.resolveUsername.html" name="contacts.resolveUsername">You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getCdnFile.html" name="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.getCdnFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getCdnFileHashes.html" name="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.getCdnFileHashes</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getFile.html" name="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.getFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.getFileHashes.html" name="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.getFileHashes</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.reuploadCdnFile.html" name="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.reuploadCdnFile</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.saveBigFilePart.html" name="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.saveBigFilePart</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/upload.saveFilePart.html" name="upload.saveFilePart">You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.receivedQueue.html" name="messages.receivedQueue">You cannot use this method directly: messages.receivedQueue</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getPasswordSettings.html" name="account.getPasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings</a>
|
||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.updatePasswordSettings.html" name="account.updatePasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings</a>
|
||||
* [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)
|
||||
|
@ -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)
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">Accept incoming call: phone.acceptCall</a>
|
||||
|
||||
* <a href="help.acceptTermsOfService.html" name="help.acceptTermsOfService">Accept the new terms of service: help.acceptTermsOfService</a>
|
||||
|
||||
* <a href="messages.saveGif.html" name="messages.saveGif">Add GIF to saved gifs list: messages.saveGif</a>
|
||||
@ -54,16 +52,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="channels.editBanned.html" name="channels.editBanned">Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned</a>
|
||||
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">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</a>
|
||||
|
||||
* <a href="account.cancelPasswordEmail.html" name="account.cancelPasswordEmail">Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail</a>
|
||||
|
||||
* <a href="auth.cancelCode.html" name="auth.cancelCode">Cancel the login verification code: auth.cancelCode</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.editChatTitle.html" name="messages.editChatTitle">Chanages chat name and sends a service message on it.: messages.editChatTitle</a>
|
||||
|
||||
* <a href="account.saveAutoDownloadSettings.html" name="account.saveAutoDownloadSettings">Change media autodownload settings: account.saveAutoDownloadSettings</a>
|
||||
@ -94,12 +86,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.confirmPhone.html" name="account.confirmPhone">Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">Confirms creation of a secret chat: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.receivedMessages.html" name="messages.receivedMessages">Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue</a>
|
||||
|
||||
* <a href="channels.createChannel.html" name="channels.createChannel">Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel</a>
|
||||
|
||||
* <a href="stickers.createStickerSet.html" name="stickers.createStickerSet">Create a stickerset, bots only.: stickers.createStickerSet</a>
|
||||
@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.unblock.html" name="contacts.unblock">Deletes the user from the blacklist.: contacts.unblock</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="upload.getCdnFile">Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile</a>
|
||||
|
||||
* <a href="messages.editInlineBotMessage.html" name="messages.editInlineBotMessage">Edit an inline bot message: messages.editInlineBotMessage</a>
|
||||
|
||||
* <a href="messages.editMessage.html" name="messages.editMessage">Edit message: messages.editMessage</a>
|
||||
@ -174,10 +160,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.forwardMessages.html" name="messages.forwardMessages">Forwards messages by their IDs.: messages.forwardMessages</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="upload.getCdnFileHashes">Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="upload.getFileHashes">Get SHA256 hashes for verifying downloaded files: upload.getFileHashes</a>
|
||||
|
||||
* <a href="channels.getMessages.html" name="channels.getMessages">Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages</a>
|
||||
|
||||
* <a href="channels.getAdminedPublicChannels.html" name="channels.getAdminedPublicChannels">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</a>
|
||||
@ -232,8 +214,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.getFeaturedStickers.html" name="messages.getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">Get full info about a channel: channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getInlineGameHighScores.html" name="messages.getInlineGameHighScores">Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores</a>
|
||||
|
||||
* <a href="messages.getGameHighScores.html" name="messages.getGameHighScores">Get highscores of a game: messages.getGameHighScores</a>
|
||||
@ -276,8 +256,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.getTopPeers.html" name="contacts.getTopPeers">Get most used peers: contacts.getTopPeers</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference</a>
|
||||
|
||||
* <a href="langpack.getDifference.html" name="langpack.getDifference">Get new strings in languagepack: langpack.getDifference</a>
|
||||
|
||||
* <a href="payments.getPaymentReceipt.html" name="payments.getPaymentReceipt">Get payment receipt: payments.getPaymentReceipt</a>
|
||||
@ -294,8 +272,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.getPrivacy.html" name="account.getPrivacy">Get privacy settings of current account: account.getPrivacy</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="help.getProxyData.html" name="help.getProxyData">Get promotion info of the currently-used MTProxy: help.getProxyData</a>
|
||||
|
||||
* <a href="messages.getRecentStickers.html" name="messages.getRecentStickers">Get recent stickers: messages.getRecentStickers</a>
|
||||
@ -382,12 +358,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.resetWebAuthorization.html" name="account.resetWebAuthorization">Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">Login as a bot: auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">Logs out the user.: auth.logOut</a>
|
||||
|
||||
* <a href="help.getTermsOfServiceUpdate.html" name="help.getTermsOfServiceUpdate">Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate</a>
|
||||
|
||||
* <a href="messages.editChatAdmin.html" name="messages.editChatAdmin">Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin</a>
|
||||
@ -436,12 +406,8 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="phone.setCallRating.html" name="phone.setCallRating">Rate a call: phone.setCallRating</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">Refuse or end running call: phone.discardCall</a>
|
||||
|
||||
* <a href="account.registerDevice.html" name="account.registerDevice">Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">Registers a validated phone number in the system.: auth.signUp</a>
|
||||
|
||||
* <a href="stickers.removeStickerFromSet.html" name="stickers.removeStickerFromSet">Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet</a>
|
||||
|
||||
* <a href="messages.reorderStickerSets.html" name="messages.reorderStickerSets">Reorder installed stickersets: messages.reorderStickerSets</a>
|
||||
@ -458,8 +424,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="channels.reportSpam.html" name="channels.reportSpam">Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="upload.reuploadCdnFile">Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile</a>
|
||||
|
||||
* <a href="auth.requestPasswordRecovery.html" name="auth.requestPasswordRecovery">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</a>
|
||||
|
||||
* <a href="account.resendPasswordEmail.html" name="account.resendPasswordEmail">Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail</a>
|
||||
@ -474,14 +438,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="account.resetNotifySettings.html" name="account.resetNotifySettings">Resets all notification settings from users and groups.: account.resetNotifySettings</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">Resolve a @username to get peer info: contacts.resolveUsername</a>
|
||||
|
||||
* <a href="messages.getStatsURL.html" name="messages.getStatsURL">Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL</a>
|
||||
|
||||
* <a href="account.getAuthorizationForm.html" name="account.getAuthorizationForm">Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">Returns a current state of updates.: updates.getState</a>
|
||||
|
||||
* <a href="account.getWallPapers.html" name="account.getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
|
||||
* <a href="messages.getEmojiURL.html" name="messages.getEmojiURL">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</a>
|
||||
@ -490,20 +450,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getChats.html" name="messages.getChats">Returns chat basic info on their IDs.: messages.getChats</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="upload.getFile">Returns content of a whole file or its part.: upload.getFile</a>
|
||||
|
||||
* <a href="upload.getWebFile.html" name="upload.getWebFile">Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile</a>
|
||||
|
||||
* <a href="help.getConfig.html" name="help.getConfig">Returns current configuration, icluding data center configuration.: help.getConfig</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">Returns data for copying authorization to another data-centre.: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">Returns extended user info by ID.: users.getFullUser</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">Returns full chat info according to its ID.: messages.getFullChat</a>
|
||||
|
||||
* <a href="help.getNearestDc.html" name="help.getNearestDc">Returns info on data centre nearest to the user.: help.getNearestDc</a>
|
||||
|
||||
* <a href="help.getAppUpdate.html" name="help.getAppUpdate">Returns information on update availability for the current application.: help.getAppUpdate</a>
|
||||
@ -516,8 +466,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="contacts.getContacts.html" name="contacts.getContacts">Returns the current user's contact list.: contacts.getContacts</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="contacts.getBlocked.html" name="contacts.getBlocked">Returns the list of blocked users.: contacts.getBlocked</a>
|
||||
|
||||
* <a href="contacts.getStatuses.html" name="contacts.getStatuses">Returns the list of contact statuses.: contacts.getStatuses</a>
|
||||
@ -534,10 +482,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getAllDrafts.html" name="messages.getAllDrafts">Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="upload.saveBigFilePart">Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">Saves a part of file for futher sending to one of the methods.: upload.saveFilePart</a>
|
||||
|
||||
* <a href="help.saveAppLog.html" name="help.saveAppLog">Saves logs of application on the server.: help.saveAppLog</a>
|
||||
|
||||
* <a href="messages.searchGifs.html" name="messages.searchGifs">Search for GIFs: messages.searchGifs</a>
|
||||
@ -560,8 +504,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="phone.saveCallDebug.html" name="phone.saveCallDebug">Send phone call debug data to server: phone.saveCallDebug</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">Send the verification code for login: auth.sendCode</a>
|
||||
|
||||
* <a href="account.sendVerifyEmailCode.html" name="account.sendVerifyEmailCode">Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode</a>
|
||||
|
||||
* <a href="account.sendVerifyPhoneCode.html" name="account.sendVerifyPhoneCode">Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode</a>
|
||||
@ -578,24 +520,16 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.sendEncryptedFile.html" name="messages.sendEncryptedFile">Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">Sends a request to start a secret chat to the user.: messages.requestEncryption</a>
|
||||
|
||||
* <a href="messages.sendEncryptedService.html" name="messages.sendEncryptedService">Sends a service message to a secret chat.: messages.sendEncryptedService</a>
|
||||
|
||||
* <a href="messages.sendEncrypted.html" name="messages.sendEncrypted">Sends a text message to a secret chat.: messages.sendEncrypted</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">Set a new 2FA password: account.updatePasswordSettings</a>
|
||||
|
||||
* <a href="account.setAccountTTL.html" name="account.setAccountTTL">Set account self-destruction period: account.setAccountTTL</a>
|
||||
|
||||
* <a href="messages.setBotCallbackAnswer.html" name="messages.setBotCallbackAnswer">Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">Signs in a user with a validated phone number.: auth.signIn</a>
|
||||
|
||||
* <a href="messages.startBot.html" name="messages.startBot">Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">Start a telegram phone call: phone.requestCall</a>
|
||||
|
||||
* <a href="payments.validateRequestedInfo.html" name="payments.validateRequestedInfo">Submit requested order information for validation: payments.validateRequestedInfo</a>
|
||||
|
||||
* <a href="auth.resetAuthorizations.html" name="auth.resetAuthorizations">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
|
||||
|
||||
* <a href="account.setContactSignUpNotification.html" name="account.setContactSignUpNotification">Toggle contact sign up notifications: account.setContactSignUpNotification</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword</a>
|
||||
|
||||
* <a href="messages.migrateChat.html" name="messages.migrateChat">Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat</a>
|
||||
|
||||
* <a href="messages.uninstallStickerSet.html" name="messages.uninstallStickerSet">Uninstall a stickerset: messages.uninstallStickerSet</a>
|
||||
@ -642,5 +574,71 @@ After calling this method it is necessary to reregister the current device using
|
||||
|
||||
* <a href="account.getContactSignUpNotification.html" name="account.getContactSignUpNotification">Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall</a>
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">You cannot use this method 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</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState</a>
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="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.getCdnFile</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="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.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="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.getFile</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="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.getFileHashes</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="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.reuploadCdnFile</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="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.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">You cannot use this method directly: messages.receivedQueue</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings</a>
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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`<br>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)
|
||||
|
@ -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.<br>Simply tells the server to not return the difference if it is bigger than `pts_total_limit`<br>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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">Accept incoming call: phone.acceptCall</a>
|
||||
|
||||
* <a href="help.acceptTermsOfService.html" name="help.acceptTermsOfService">Accept the new terms of service: help.acceptTermsOfService</a>
|
||||
|
||||
* <a href="messages.saveGif.html" name="messages.saveGif">Add GIF to saved gifs list: messages.saveGif</a>
|
||||
@ -56,16 +54,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="channels.editBanned.html" name="channels.editBanned">Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).: channels.editBanned</a>
|
||||
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">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</a>
|
||||
|
||||
* <a href="account.cancelPasswordEmail.html" name="account.cancelPasswordEmail">Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.cancelPasswordEmail</a>
|
||||
|
||||
* <a href="auth.cancelCode.html" name="auth.cancelCode">Cancel the login verification code: auth.cancelCode</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">Cancels a request for creation and/or delete info on secret chat.: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.editChatTitle.html" name="messages.editChatTitle">Chanages chat name and sends a service message on it.: messages.editChatTitle</a>
|
||||
|
||||
* <a href="account.saveAutoDownloadSettings.html" name="account.saveAutoDownloadSettings">Change media autodownload settings: account.saveAutoDownloadSettings</a>
|
||||
@ -96,12 +88,8 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.confirmPhone.html" name="account.confirmPhone">Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion): account.confirmPhone</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">Confirms creation of a secret chat: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.receivedMessages.html" name="messages.receivedMessages">Confirms receipt of messages by a client, cancels PUSH-notification sending.: messages.receivedMessages</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">Confirms receipt of messages in a secret chat by client, cancels push notifications.: messages.receivedQueue</a>
|
||||
|
||||
* <a href="channels.createChannel.html" name="channels.createChannel">Create a [supergroup/channel](https://core.telegram.org/api/channel).: channels.createChannel</a>
|
||||
|
||||
* <a href="stickers.createStickerSet.html" name="stickers.createStickerSet">Create a stickerset, bots only.: stickers.createStickerSet</a>
|
||||
@ -146,8 +134,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.unblock.html" name="contacts.unblock">Deletes the user from the blacklist.: contacts.unblock</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="upload.getCdnFile">Download a [CDN](https://core.telegram.org/cdn) file.: upload.getCdnFile</a>
|
||||
|
||||
* <a href="messages.editInlineBotMessage.html" name="messages.editInlineBotMessage">Edit an inline bot message: messages.editInlineBotMessage</a>
|
||||
|
||||
* <a href="channels.editLocation.html" name="channels.editLocation">Edit location of geogroup: channels.editLocation</a>
|
||||
@ -176,10 +162,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.forwardMessages.html" name="messages.forwardMessages">Forwards messages by their IDs.: messages.forwardMessages</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="upload.getCdnFileHashes">Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files: upload.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="upload.getFileHashes">Get SHA256 hashes for verifying downloaded files: upload.getFileHashes</a>
|
||||
|
||||
* <a href="channels.getMessages.html" name="channels.getMessages">Get [channel/supergroup](https://core.telegram.org/api/channel) messages: channels.getMessages</a>
|
||||
|
||||
* <a href="channels.getAdminedPublicChannels.html" name="channels.getAdminedPublicChannels">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</a>
|
||||
@ -234,8 +216,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="messages.getFeaturedStickers.html" name="messages.getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">Get full info about a channel: channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getInlineGameHighScores.html" name="messages.getInlineGameHighScores">Get highscores of a game sent using an inline bot: messages.getInlineGameHighScores</a>
|
||||
|
||||
* <a href="messages.getGameHighScores.html" name="messages.getGameHighScores">Get highscores of a game: messages.getGameHighScores</a>
|
||||
@ -278,8 +258,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="contacts.getTopPeers.html" name="contacts.getTopPeers">Get most used peers: contacts.getTopPeers</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">Get new [updates](https://core.telegram.org/api/updates).: updates.getDifference</a>
|
||||
|
||||
* <a href="langpack.getDifference.html" name="langpack.getDifference">Get new strings in languagepack: langpack.getDifference</a>
|
||||
|
||||
* <a href="payments.getPaymentReceipt.html" name="payments.getPaymentReceipt">Get payment receipt: payments.getPaymentReceipt</a>
|
||||
@ -296,8 +274,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.getPrivacy.html" name="account.getPrivacy">Get privacy settings of current account: account.getPrivacy</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="help.getProxyData.html" name="help.getProxyData">Get promotion info of the currently-used MTProxy: help.getProxyData</a>
|
||||
|
||||
* <a href="messages.getRecentStickers.html" name="messages.getRecentStickers">Get recent stickers: messages.getRecentStickers</a>
|
||||
@ -384,12 +360,6 @@ For more information, see [Perfect Forward Secrecy](https://core.telegram.org/ap
|
||||
|
||||
* <a href="account.resetWebAuthorization.html" name="account.resetWebAuthorization">Log out an active web [telegram login](https://core.telegram.org/widgets/login) session: account.resetWebAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">Login as a bot: auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">Logs in a user using a key transmitted from his native data-centre.: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">Logs out the user.: auth.logOut</a>
|
||||
|
||||
* <a href="help.getTermsOfServiceUpdate.html" name="help.getTermsOfServiceUpdate">Look for updates of telegram's terms of service: help.getTermsOfServiceUpdate</a>
|
||||
|
||||
* <a href="messages.editChatAdmin.html" name="messages.editChatAdmin">Make a user admin in a [legacy group](https://core.telegram.org/api/channel).: messages.editChatAdmin</a>
|
||||
@ -438,12 +408,8 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="phone.setCallRating.html" name="phone.setCallRating">Rate a call: phone.setCallRating</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">Refuse or end running call: phone.discardCall</a>
|
||||
|
||||
* <a href="account.registerDevice.html" name="account.registerDevice">Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">Registers a validated phone number in the system.: auth.signUp</a>
|
||||
|
||||
* <a href="stickers.removeStickerFromSet.html" name="stickers.removeStickerFromSet">Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.: stickers.removeStickerFromSet</a>
|
||||
|
||||
* <a href="messages.reorderStickerSets.html" name="messages.reorderStickerSets">Reorder installed stickersets: messages.reorderStickerSets</a>
|
||||
@ -460,8 +426,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="channels.reportSpam.html" name="channels.reportSpam">Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup: channels.reportSpam</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="upload.reuploadCdnFile">Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).: upload.reuploadCdnFile</a>
|
||||
|
||||
* <a href="auth.requestPasswordRecovery.html" name="auth.requestPasswordRecovery">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</a>
|
||||
|
||||
* <a href="account.resendPasswordEmail.html" name="account.resendPasswordEmail">Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).: account.resendPasswordEmail</a>
|
||||
@ -476,14 +440,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="account.resetNotifySettings.html" name="account.resetNotifySettings">Resets all notification settings from users and groups.: account.resetNotifySettings</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">Resolve a @username to get peer info: contacts.resolveUsername</a>
|
||||
|
||||
* <a href="messages.getStatsURL.html" name="messages.getStatsURL">Returns URL with the chat statistics. Currently this method can be used only for channels: messages.getStatsURL</a>
|
||||
|
||||
* <a href="account.getAuthorizationForm.html" name="account.getAuthorizationForm">Returns a Telegram Passport authorization form for sharing data with a service: account.getAuthorizationForm</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">Returns a current state of updates.: updates.getState</a>
|
||||
|
||||
* <a href="account.getWallPapers.html" name="account.getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
|
||||
* <a href="messages.getEmojiURL.html" name="messages.getEmojiURL">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</a>
|
||||
@ -492,20 +452,10 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getChats.html" name="messages.getChats">Returns chat basic info on their IDs.: messages.getChats</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.: messages.getDhConfig</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="upload.getFile">Returns content of a whole file or its part.: upload.getFile</a>
|
||||
|
||||
* <a href="upload.getWebFile.html" name="upload.getWebFile">Returns content of an HTTP file or a part, by proxying the request through telegram.: upload.getWebFile</a>
|
||||
|
||||
* <a href="help.getConfig.html" name="help.getConfig">Returns current configuration, icluding data center configuration.: help.getConfig</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">Returns data for copying authorization to another data-centre.: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">Returns extended user info by ID.: users.getFullUser</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">Returns full chat info according to its ID.: messages.getFullChat</a>
|
||||
|
||||
* <a href="help.getNearestDc.html" name="help.getNearestDc">Returns info on data centre nearest to the user.: help.getNearestDc</a>
|
||||
|
||||
* <a href="help.getAppUpdate.html" name="help.getAppUpdate">Returns information on update availability for the current application.: help.getAppUpdate</a>
|
||||
@ -518,8 +468,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="contacts.getContacts.html" name="contacts.getContacts">Returns the current user's contact list.: contacts.getContacts</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">Returns the difference between the current state of updates of a certain channel and transmitted.: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="contacts.getBlocked.html" name="contacts.getBlocked">Returns the list of blocked users.: contacts.getBlocked</a>
|
||||
|
||||
* <a href="contacts.getStatuses.html" name="contacts.getStatuses">Returns the list of contact statuses.: contacts.getStatuses</a>
|
||||
@ -536,10 +484,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.getAllDrafts.html" name="messages.getAllDrafts">Save get all message [drafts](https://core.telegram.org/api/drafts).: messages.getAllDrafts</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="upload.saveBigFilePart">Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.: upload.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">Saves a part of file for futher sending to one of the methods.: upload.saveFilePart</a>
|
||||
|
||||
* <a href="help.saveAppLog.html" name="help.saveAppLog">Saves logs of application on the server.: help.saveAppLog</a>
|
||||
|
||||
* <a href="messages.searchGifs.html" name="messages.searchGifs">Search for GIFs: messages.searchGifs</a>
|
||||
@ -562,8 +506,6 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="phone.saveCallDebug.html" name="phone.saveCallDebug">Send phone call debug data to server: phone.saveCallDebug</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">Send the verification code for login: auth.sendCode</a>
|
||||
|
||||
* <a href="account.sendVerifyEmailCode.html" name="account.sendVerifyEmailCode">Send the verification email code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyEmailCode</a>
|
||||
|
||||
* <a href="account.sendVerifyPhoneCode.html" name="account.sendVerifyPhoneCode">Send the verification phone code for telegram [passport](https://core.telegram.org/passport).: account.sendVerifyPhoneCode</a>
|
||||
@ -580,26 +522,18 @@ Use this method to respond to such pre-checkout queries.
|
||||
|
||||
* <a href="messages.sendEncryptedFile.html" name="messages.sendEncryptedFile">Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">Sends a request to start a secret chat to the user.: messages.requestEncryption</a>
|
||||
|
||||
* <a href="messages.sendEncryptedService.html" name="messages.sendEncryptedService">Sends a service message to a secret chat.: messages.sendEncryptedService</a>
|
||||
|
||||
* <a href="messages.sendEncrypted.html" name="messages.sendEncrypted">Sends a text message to a secret chat.: messages.sendEncrypted</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">Set a new 2FA password: account.updatePasswordSettings</a>
|
||||
|
||||
* <a href="account.setAccountTTL.html" name="account.setAccountTTL">Set account self-destruction period: account.setAccountTTL</a>
|
||||
|
||||
* <a href="messages.setBotCallbackAnswer.html" name="messages.setBotCallbackAnswer">Set the callback answer to a user button press (bots only): messages.setBotCallbackAnswer</a>
|
||||
|
||||
* <a href="messages.hidePeerSettingsBar.html" name="messages.hidePeerSettingsBar">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</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">Signs in a user with a validated phone number.: auth.signIn</a>
|
||||
|
||||
* <a href="messages.startBot.html" name="messages.startBot">Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/bots#deep-linking): messages.startBot</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">Start a telegram phone call: phone.requestCall</a>
|
||||
|
||||
* <a href="payments.validateRequestedInfo.html" name="payments.validateRequestedInfo">Submit requested order information for validation: payments.validateRequestedInfo</a>
|
||||
|
||||
* <a href="auth.resetAuthorizations.html" name="auth.resetAuthorizations">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
|
||||
|
||||
* <a href="channels.editCreator.html" name="channels.editCreator">Transfer channel ownership: channels.editCreator</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).: auth.checkPassword</a>
|
||||
|
||||
* <a href="messages.migrateChat.html" name="messages.migrateChat">Turn a [legacy group into a supergroup](https://core.telegram.org/api/channel): messages.migrateChat</a>
|
||||
|
||||
* <a href="messages.uninstallStickerSet.html" name="messages.uninstallStickerSet">Uninstall a stickerset: messages.uninstallStickerSet</a>
|
||||
@ -648,5 +580,71 @@ After calling this method it is necessary to reregister the current device using
|
||||
|
||||
* <a href="account.getContactSignUpNotification.html" name="account.getContactSignUpNotification">Whether the user will receive notifications when contacts sign up: account.getContactSignUpNotification</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls): phone.confirmCall</a>
|
||||
* <a href="auth.bindTempAuthKey.html" name="auth.bindTempAuthKey">You cannot use this method 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</a>
|
||||
|
||||
* <a href="messages.getDhConfig.html" name="messages.getDhConfig">You cannot use this method directly, instead use $MadelineProto->getDhConfig();: messages.getDhConfig</a>
|
||||
|
||||
* <a href="messages.acceptEncryption.html" name="messages.acceptEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption</a>
|
||||
|
||||
* <a href="messages.discardEncryption.html" name="messages.discardEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption</a>
|
||||
|
||||
* <a href="messages.requestEncryption.html" name="messages.requestEncryption">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption</a>
|
||||
|
||||
* <a href="updates.getChannelDifference.html" name="updates.getChannelDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference</a>
|
||||
|
||||
* <a href="updates.getDifference.html" name="updates.getDifference">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference</a>
|
||||
|
||||
* <a href="updates.getState.html" name="updates.getState">You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState</a>
|
||||
|
||||
* <a href="phone.acceptCall.html" name="phone.acceptCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall</a>
|
||||
|
||||
* <a href="phone.confirmCall.html" name="phone.confirmCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall</a>
|
||||
|
||||
* <a href="phone.discardCall.html" name="phone.discardCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall</a>
|
||||
|
||||
* <a href="phone.requestCall.html" name="phone.requestCall">You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall</a>
|
||||
|
||||
* <a href="auth.exportAuthorization.html" name="auth.exportAuthorization">You cannot use this method directly, use $MadelineProto->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization</a>
|
||||
|
||||
* <a href="auth.importAuthorization.html" name="auth.importAuthorization">You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization</a>
|
||||
|
||||
* <a href="auth.importBotAuthorization.html" name="auth.importBotAuthorization">You cannot use this method directly, use the botLogin method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization</a>
|
||||
|
||||
* <a href="auth.signIn.html" name="auth.signIn">You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn</a>
|
||||
|
||||
* <a href="auth.signUp.html" name="auth.signUp">You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp</a>
|
||||
|
||||
* <a href="auth.checkPassword.html" name="auth.checkPassword">You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword</a>
|
||||
|
||||
* <a href="channels.getFullChannel.html" name="channels.getFullChannel">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel</a>
|
||||
|
||||
* <a href="messages.getFullChat.html" name="messages.getFullChat">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat</a>
|
||||
|
||||
* <a href="users.getFullUser.html" name="users.getFullUser">You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser</a>
|
||||
|
||||
* <a href="auth.logOut.html" name="auth.logOut">You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut</a>
|
||||
|
||||
* <a href="auth.sendCode.html" name="auth.sendCode">You cannot use this method directly, use the phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode</a>
|
||||
|
||||
* <a href="contacts.resolveUsername.html" name="contacts.resolveUsername">You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername</a>
|
||||
|
||||
* <a href="upload.getCdnFile.html" name="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.getCdnFile</a>
|
||||
|
||||
* <a href="upload.getCdnFileHashes.html" name="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.getCdnFileHashes</a>
|
||||
|
||||
* <a href="upload.getFile.html" name="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.getFile</a>
|
||||
|
||||
* <a href="upload.getFileHashes.html" name="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.getFileHashes</a>
|
||||
|
||||
* <a href="upload.reuploadCdnFile.html" name="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.reuploadCdnFile</a>
|
||||
|
||||
* <a href="upload.saveBigFilePart.html" name="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.saveBigFilePart</a>
|
||||
|
||||
* <a href="upload.saveFilePart.html" name="upload.saveFilePart">You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart</a>
|
||||
|
||||
* <a href="messages.receivedQueue.html" name="messages.receivedQueue">You cannot use this method directly: messages.receivedQueue</a>
|
||||
|
||||
* <a href="account.getPasswordSettings.html" name="account.getPasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.getPasswordSettings</a>
|
||||
|
||||
* <a href="account.updatePasswordSettings.html" name="account.updatePasswordSettings">You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings</a>
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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`<br>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)
|
||||
|
@ -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.<br>Simply tells the server to not return the difference if it is bigger than `pts_total_limit`<br>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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user