Improve documentation

This commit is contained in:
Daniil Gentili 2018-08-29 11:18:25 +02:00
parent 2dc6793d16
commit a0090a2c56
3967 changed files with 16993 additions and 16966 deletions

View File

@ -11,13 +11,13 @@ Accept telegram passport authorization
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|bot\_id|[int](../types/int.md) | Yes|Bot ID| |bot\_id|[int](../types/int.md) | Bot ID | Yes|
|scope|[string](../types/string.md) | Yes|Scope| |scope|[string](../types/string.md) | Scope | Yes|
|public\_key|[string](../types/string.md) | Yes|The bot's RSA public key| |public\_key|[string](../types/string.md) | The bot's RSA public key | Yes|
|value\_hashes|Array of [SecureValueHash](../types/SecureValueHash.md) | Yes|Hashes of the encrypted credentials| |value\_hashes|Array of [SecureValueHash](../types/SecureValueHash.md) | Hashes of the encrypted credentials | Yes|
|credentials|[SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md) | Yes|Encrypted secure credentials| |credentials|[SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md) | Encrypted secure credentials | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Change the phone number associated to this account
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|phone\_number|[string](../types/string.md) | Yes|Phone number| |phone\_number|[string](../types/string.md) | Phone number | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash returned by account.sendChangePhoneCode| |phone\_code\_hash|[string](../types/string.md) | Phone code hash returned by account.sendChangePhoneCode | Yes|
|phone\_code|[string](../types/string.md) | Yes|The phone code sent by account.sendChangePhoneCode| |phone\_code|[string](../types/string.md) | The phone code sent by account.sendChangePhoneCode | Yes|
### Return type: [User](../types/User.md) ### Return type: [User](../types/User.md)

View File

@ -11,9 +11,9 @@ Check if this username is available
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|username|[string](../types/string.md) | Yes|The username to check| |username|[string](../types/string.md) | The username to check | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Confirm this phone number is associated to this account, obtain phone_code_hash
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|phone\_code\_hash|[string](../types/string.md) | Yes|obtain phone_code_hash from sendConfirmPhoneCode| |phone\_code\_hash|[string](../types/string.md) | obtain phone_code_hash from sendConfirmPhoneCode | Yes|
|phone\_code|[string](../types/string.md) | Yes|The code sent by sendConfirmPhoneCode| |phone\_code|[string](../types/string.md) | The code sent by sendConfirmPhoneCode | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete this account
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|reason|[string](../types/string.md) | Yes|Why are you going away? :(| |reason|[string](../types/string.md) | Why are you going away? :( | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete secure telegram passport value
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|types|Array of [SecureValueType](../types/SecureValueType.md) | Yes|The values to delete| |types|Array of [SecureValueType](../types/SecureValueType.md) | The values to delete | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Finish account exporting session
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|success|[Bool](../types/Bool.md) | Optional|Did the data export succeed?| |success|[Bool](../types/Bool.md) | Did the data export succeed? | Optional|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Bots only: get telegram passport authorization form
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|bot\_id|[int](../types/int.md) | Yes|Bot ID| |bot\_id|[int](../types/int.md) | Bot ID | Yes|
|scope|[string](../types/string.md) | Yes|Scope| |scope|[string](../types/string.md) | Scope | Yes|
|public\_key|[string](../types/string.md) | Yes|Bot's public key| |public\_key|[string](../types/string.md) | Bot's public key | Yes|
### Return type: [account\_AuthorizationForm](../types/account_AuthorizationForm.md) ### Return type: [account\_AuthorizationForm](../types/account_AuthorizationForm.md)

View File

@ -11,9 +11,9 @@ Get notification settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|Notification source | |peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Notification source | Yes|
### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md) ### Return type: [PeerNotifySettings](../types/PeerNotifySettings.md)

View File

@ -11,9 +11,9 @@ Get the current 2FA settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|current\_password\_hash|[bytes](../types/bytes.md) | Yes|Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);`| |current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes|
### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md) ### Return type: [account\_PasswordSettings](../types/account_PasswordSettings.md)

View File

@ -11,9 +11,9 @@ Get privacy settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting key| |key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Privacy setting key | Yes|
### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md)

View File

@ -11,9 +11,9 @@ Get secure value for telegram passport
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|types|Array of [SecureValueType](../types/SecureValueType.md) | Yes|Get telegram passport secure parameters| |types|Array of [SecureValueType](../types/SecureValueType.md) | Get telegram passport secure parameters | Yes|
### Return type: [Vector\_of\_SecureValue](../types/SecureValue.md) ### Return type: [Vector\_of\_SecureValue](../types/SecureValue.md)

View File

@ -11,10 +11,10 @@ Get temporary password for buying products through bots
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|password\_hash|[bytes](../types/bytes.md) | Yes|The password hash| |password\_hash|[bytes](../types/bytes.md) | The password hash | Yes|
|period|[int](../types/int.md) | Yes|The validity period| |period|[int](../types/int.md) | The validity period | Yes|
### Return type: [account\_TmpPassword](../types/account_TmpPassword.md) ### Return type: [account\_TmpPassword](../types/account_TmpPassword.md)

View File

@ -11,15 +11,15 @@ Start account exporting session
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|contacts|[Bool](../types/Bool.md) | Optional|Export contacts?| |contacts|[Bool](../types/Bool.md) | Export contacts? | Optional|
|message\_users|[Bool](../types/Bool.md) | Optional|Export users?| |message\_users|[Bool](../types/Bool.md) | Export users? | Optional|
|message\_chats|[Bool](../types/Bool.md) | Optional|Export chats?| |message\_chats|[Bool](../types/Bool.md) | Export chats? | Optional|
|message\_megagroups|[Bool](../types/Bool.md) | Optional|Export supergroups?| |message\_megagroups|[Bool](../types/Bool.md) | Export supergroups? | Optional|
|message\_channels|[Bool](../types/Bool.md) | Optional|Export channel messages?| |message\_channels|[Bool](../types/Bool.md) | Export channel messages? | Optional|
|files|[Bool](../types/Bool.md) | Optional|Export files?| |files|[Bool](../types/Bool.md) | Export files? | Optional|
|file\_max\_size|[int](../types/int.md) | Optional|Export only files smaller than this size| |file\_max\_size|[int](../types/int.md) | Export only files smaller than this size | Optional|
### Return type: [account\_Takeout](../types/account_Takeout.md) ### Return type: [account\_Takeout](../types/account_Takeout.md)

View File

@ -11,13 +11,13 @@ Register device for push notifications
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|token\_type|[int](../types/int.md) | Yes|Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone, 6 - Blackberry, and other, see source code of official apps for more info| |token\_type|[int](../types/int.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone, 6 - Blackberry, and other, see source code of official apps for more info | Yes|
|token|[string](../types/string.md) | Yes|Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info| |token|[string](../types/string.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes|
|app\_sandbox|[Bool](../types/Bool.md) | Yes|Should the app run in a sandbox?| |app\_sandbox|[Bool](../types/Bool.md) | Should the app run in a sandbox? | Yes|
|secret|[bytes](../types/bytes.md) | Yes|Secret| |secret|[bytes](../types/bytes.md) | Secret | Yes|
|other\_uids|Array of [int](../types/int.md) | Yes|Other UIDs| |other\_uids|Array of [int](../types/int.md) | Other UIDs | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Report for spam
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer to report| |peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer to report | Optional|
|reason|[ReportReason](../types/ReportReason.md) | Yes|Why are you reporting this peer| |reason|[ReportReason](../types/ReportReason.md) | Why are you reporting this peer | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete a certain session
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|hash|[long](../types/long.md) | Yes|The session hash, obtained from $MadelineProto->account->getAuthorizations| |hash|[long](../types/long.md) | The session hash, obtained from $MadelineProto->account->getAuthorizations | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete a certain telegram web login authorization
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|hash|[long](../types/long.md) | Yes|The authorization's hash| |hash|[long](../types/long.md) | The authorization's hash | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Save telegram passport secure value
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|value|[InputSecureValue](../types/InputSecureValue.md) | Yes|Encrypted value| |value|[InputSecureValue](../types/InputSecureValue.md) | Encrypted value | Yes|
|secure\_secret\_id|[long](../types/long.md) | Yes|Secret| |secure\_secret\_id|[long](../types/long.md) | Secret | Yes|
### Return type: [SecureValue](../types/SecureValue.md) ### Return type: [SecureValue](../types/SecureValue.md)

View File

@ -11,11 +11,11 @@ Change the phone number
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can the code be sent using a flash call instead of an SMS?| |allow\_flashcall|[Bool](../types/Bool.md) | Can the code be sent using a flash call instead of an SMS? | Optional|
|phone\_number|[string](../types/string.md) | Yes|New phone number| |phone\_number|[string](../types/string.md) | New phone number | Yes|
|current\_number|[Bool](../types/Bool.md) | Optional|Current phone number| |current\_number|[Bool](../types/Bool.md) | Current phone number | Optional|
### Return type: [auth\_SentCode](../types/auth_SentCode.md) ### Return type: [auth\_SentCode](../types/auth_SentCode.md)

View File

@ -11,11 +11,11 @@ Send confirmation phone code
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Can telegram call you instead of sending an SMS?| |allow\_flashcall|[Bool](../types/Bool.md) | Can telegram call you instead of sending an SMS? | Optional|
|hash|[string](../types/string.md) | Yes|The hash| |hash|[string](../types/string.md) | The hash | Yes|
|current\_number|[Bool](../types/Bool.md) | Optional|The current phone number| |current\_number|[Bool](../types/Bool.md) | The current phone number | Optional|
### Return type: [auth\_SentCode](../types/auth_SentCode.md) ### Return type: [auth\_SentCode](../types/auth_SentCode.md)

View File

@ -11,9 +11,9 @@ Send email verification code
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|email|[string](../types/string.md) | Yes|Email| |email|[string](../types/string.md) | Email | Yes|
### Return type: [account\_SentEmailCode](../types/account_SentEmailCode.md) ### Return type: [account\_SentEmailCode](../types/account_SentEmailCode.md)

View File

@ -11,11 +11,11 @@ Send phone verification code
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow phone calls?| |allow\_flashcall|[Bool](../types/Bool.md) | Allow phone calls? | Optional|
|phone\_number|[string](../types/string.md) | Yes|The phone number| |phone\_number|[string](../types/string.md) | The phone number | Yes|
|current\_number|[Bool](../types/Bool.md) | Optional|Is this the current number?| |current\_number|[Bool](../types/Bool.md) | Is this the current number? | Optional|
### Return type: [auth\_SentCode](../types/auth_SentCode.md) ### Return type: [auth\_SentCode](../types/auth_SentCode.md)

View File

@ -11,9 +11,9 @@ Set account TTL
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Yes|Time To Live of account| |ttl|[AccountDaysTTL](../types/AccountDaysTTL.md) | Time To Live of account | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Set privacy settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Yes|Privacy setting| |key|[InputPrivacyKey](../types/InputPrivacyKey.md) | Privacy setting | Yes|
|rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Yes|Privacy settings| |rules|Array of [InputPrivacyRule](../types/InputPrivacyRule.md) | Privacy settings | Yes|
### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md) ### Return type: [account\_PrivacyRules](../types/account_PrivacyRules.md)

View File

@ -11,11 +11,11 @@ Stop sending PUSH notifications to app
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|token\_type|[int](../types/int.md) | Yes|Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info| |token\_type|[int](../types/int.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes|
|token|[string](../types/string.md) | Yes|Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info| |token|[string](../types/string.md) | Device token type. Possible values: 1 - APNS, 2 - GCM, 3 - MPNS, 4 - Simple Push, 5 - Ubuntu Phone,6 - Blackberry, and other, see source code of official apps for more info | Yes|
|other\_uids|Array of [int](../types/int.md) | Yes|Other UIDs| |other\_uids|Array of [int](../types/int.md) | Other UIDs | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Disable all notifications for a certain period
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|period|[int](../types/int.md) | Yes|For how long should notifications be disabled| |period|[int](../types/int.md) | For how long should notifications be disabled | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Change notification settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | Yes|The peers to which the notification settings should be applied| |peer|[InputNotifyPeer](../types/InputNotifyPeer.md) | The peers to which the notification settings should be applied | Yes|
|settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Yes|Notification settings| |settings|[InputPeerNotifySettings](../types/InputPeerNotifySettings.md) | Notification settings | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Update the 2FA password settings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|current\_password\_hash|[bytes](../types/bytes.md) | Yes|Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);`| |current\_password\_hash|[bytes](../types/bytes.md) | Use only if you have set a 2FA password: `$current_salt = $MadelineProto->account->getPassword()['current_salt']; $current_password_hash = hash('sha256', $current_salt.$password.$current_salt, true);` | Yes|
|new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | Yes|New 2FA settings| |new\_settings|[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md) | New 2FA settings | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Update profile info
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|first\_name|[string](../types/string.md) | Optional|The first name| |first\_name|[string](../types/string.md) | The first name | Optional|
|last\_name|[string](../types/string.md) | Optional|The last name| |last\_name|[string](../types/string.md) | The last name | Optional|
|about|[string](../types/string.md) | Optional|The bio/about field| |about|[string](../types/string.md) | The bio/about field | Optional|
### Return type: [User](../types/User.md) ### Return type: [User](../types/User.md)

View File

@ -11,9 +11,9 @@ Update online status
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|offline|[Bool](../types/Bool.md) | Yes|offline to set the status to offline| |offline|[Bool](../types/Bool.md) | offline to set the status to offline | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Update this user's username
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|username|[string](../types/string.md) | Yes|The new username| |username|[string](../types/string.md) | The new username | Yes|
### Return type: [User](../types/User.md) ### Return type: [User](../types/User.md)

View File

@ -11,10 +11,10 @@ Verify email address
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|email|[string](../types/string.md) | Yes|The email address| |email|[string](../types/string.md) | The email address | Yes|
|code|[string](../types/string.md) | Yes|The received code| |code|[string](../types/string.md) | The received code | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Verify phone number
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|phone\_number|[string](../types/string.md) | Yes|The phone number| |phone\_number|[string](../types/string.md) | The phone number | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash returned by account.sendVerifyPhoneCode| |phone\_code\_hash|[string](../types/string.md) | The phone code hash returned by account.sendVerifyPhoneCode | Yes|
|phone\_code|[string](../types/string.md) | Yes|The phone code type returned by account.sendVerifyPhoneCode| |phone\_code|[string](../types/string.md) | The phone code type returned by account.sendVerifyPhoneCode | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Invalidate sent phone code
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|phone\_number|[string](../types/string.md) | Yes|Phone number| |phone\_number|[string](../types/string.md) | Phone number | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash| |phone\_code\_hash|[string](../types/string.md) | Phone code hash | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete all temporary authorization keys except the ones provided
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|except\_auth\_keys|Array of [long](../types/long.md) | Yes|The temporary authorization keys to keep| |except\_auth\_keys|Array of [long](../types/long.md) | The temporary authorization keys to keep | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Use the code that was emailed to you after running $MadelineProto->auth->request
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|code|[string](../types/string.md) | Yes|The code that was emailed to you| |code|[string](../types/string.md) | The code that was emailed to you | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md) ### Return type: [auth\_Authorization](../types/auth_Authorization.md)

View File

@ -11,10 +11,10 @@ Resend the SMS verification code
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|phone\_number|[string](../types/string.md) | Yes|The phone number| |phone\_number|[string](../types/string.md) | The phone number | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|The phone code hash| |phone\_code\_hash|[string](../types/string.md) | The phone code hash | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md) ### Return type: [auth\_SentCode](../types/auth_SentCode.md)

View File

@ -11,10 +11,10 @@ Send webhook request via bot API
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|query\_id|[long](../types/long.md) | Yes|The query ID| |query\_id|[long](../types/long.md) | The query ID | Yes|
|data|[DataJSON](../types/DataJSON.md) | Yes|The parameters| |data|[DataJSON](../types/DataJSON.md) | The parameters | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Send a custom request to the bot API
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|custom\_method|[string](../types/string.md) | Yes|The method to call| |custom\_method|[string](../types/string.md) | The method to call | Yes|
|params|[DataJSON](../types/DataJSON.md) | Yes|Method parameters| |params|[DataJSON](../types/DataJSON.md) | Method parameters | Yes|
### Return type: [DataJSON](../types/DataJSON.md) ### Return type: [DataJSON](../types/DataJSON.md)

View File

@ -11,10 +11,10 @@ Check if this username is free and can be assigned to a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|username|[string](../types/string.md) | Yes|The new username for this channel/supergroup| |username|[string](../types/string.md) | The new username for this channel/supergroup | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,12 +11,12 @@ Create channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|broadcast|[Bool](../types/Bool.md) | Optional|Set this to true to create a channel| |broadcast|[Bool](../types/Bool.md) | Set this to true to create a channel | Optional|
|megagroup|[Bool](../types/Bool.md) | Optional|Set this to true to create a supergroup| |megagroup|[Bool](../types/Bool.md) | Set this to true to create a supergroup | Optional|
|title|[string](../types/string.md) | Yes|Supergroup/channel title| |title|[string](../types/string.md) | Supergroup/channel title | Yes|
|about|[string](../types/string.md) | Yes|About text| |about|[string](../types/string.md) | About text | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,9 +11,9 @@ Delete a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup to delete| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to delete | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Delete the history of a supergroup/channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|max\_id|[int](../types/int.md) | Yes|Maximum message ID to delete| |max\_id|[int](../types/int.md) | Maximum message ID to delete | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Delete channel/supergroup messages
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|id|Array of [int](../types/int.md) | Yes|The IDs of messages to delete| |id|Array of [int](../types/int.md) | The IDs of messages to delete | Yes|
### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md) ### Return type: [messages\_AffectedMessages](../types/messages_AffectedMessages.md)

View File

@ -11,10 +11,10 @@ Delete all messages of a user in a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional|
### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md) ### Return type: [messages\_AffectedHistory](../types/messages_AffectedHistory.md)

View File

@ -11,10 +11,10 @@ Edit the about text of a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|about|[string](../types/string.md) | Yes|The new about text| |about|[string](../types/string.md) | The new about text | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Edit admin permissions of a user in a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes|The new admin rights| |admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | The new admin rights | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,11 +11,11 @@ Kick or ban a user from a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to kick/ban| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to kick/ban | Optional|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes|Banned/kicked permissions| |banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Banned/kicked permissions | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Edit the photo of a supergroup/channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|photo|[InputChatPhoto](../types/InputChatPhoto.md) | Optional|The new photo| |photo|[InputChatPhoto](../types/InputChatPhoto.md) | The new photo | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Edit the title of a supergroup/channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|title|[string](../types/string.md) | Yes|The new channel/supergroup title| |title|[string](../types/string.md) | The new channel/supergroup title | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,9 +11,9 @@ Export the invite link of a channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md) ### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)

View File

@ -11,11 +11,11 @@ Get the link of a message in a channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|id|[int](../types/int.md) | Yes|The ID of the message| |id|[int](../types/int.md) | The ID of the message | Yes|
|grouped|[Bool](../types/Bool.md) | Yes|Is this an album?| |grouped|[Bool](../types/Bool.md) | Is this an album? | Yes|
### Return type: [ExportedMessageLink](../types/ExportedMessageLink.md) ### Return type: [ExportedMessageLink](../types/ExportedMessageLink.md)

View File

@ -11,15 +11,15 @@ Get admin log of a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|q|[string](../types/string.md) | Yes|Search query| |q|[string](../types/string.md) | Search query | Yes|
|events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Optional|Event filter| |events\_filter|[ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md) | Event filter | Optional|
|admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|Fetch only actions from these admins| |admins|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Fetch only actions from these admins | Optional|
|max\_id|[long](../types/long.md) | Yes|Maximum message ID to fetch| |max\_id|[long](../types/long.md) | Maximum message ID to fetch | Yes|
|min\_id|[long](../types/long.md) | Yes|Minimum message ID to fetch| |min\_id|[long](../types/long.md) | Minimum message ID to fetch | Yes|
|limit|[int](../types/int.md) | Yes|Number of results to fetch| |limit|[int](../types/int.md) | Number of results to fetch | Yes|
### Return type: [channels\_AdminLogResults](../types/channels_AdminLogResults.md) ### Return type: [channels\_AdminLogResults](../types/channels_AdminLogResults.md)

View File

@ -11,9 +11,9 @@ Get info about multiple channels/supergroups
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Yes|The channel/supergroup MTProto IDs| |id|Array of [Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup MTProto IDs | Yes|
### Return type: [messages\_Chats](../types/messages_Chats.md) ### Return type: [messages\_Chats](../types/messages_Chats.md)

View File

@ -11,9 +11,9 @@ Get all channels you left
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|offset|[int](../types/int.md) | Yes|Offset| |offset|[int](../types/int.md) | Offset | Yes|
### Return type: [messages\_Chats](../types/messages_Chats.md) ### Return type: [messages\_Chats](../types/messages_Chats.md)

View File

@ -11,10 +11,10 @@ Get channel/supergroup messages
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | Yes|The message IDs| |id|Array of [Message ID or InputMessage](../types/InputMessage.md) | The message IDs | Yes|
### Return type: [messages\_Messages](../types/messages_Messages.md) ### Return type: [messages\_Messages](../types/messages_Messages.md)

View File

@ -11,10 +11,10 @@ Get info about a certain channel/supergroup participant
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to fetch info about| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to fetch info about | Optional|
### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) ### Return type: [channels\_ChannelParticipant](../types/channels_ChannelParticipant.md)

View File

@ -11,13 +11,13 @@ Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_cha
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes|Member filter| |filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Member filter | Yes|
|offset|[int](../types/int.md) | Yes|Offset| |offset|[int](../types/int.md) | Offset | Yes|
|limit|[int](../types/int.md) | Yes|Limit| |limit|[int](../types/int.md) | Limit | Yes|
|hash|[int](../types/int.md) | Yes|$MadelineProto->gen_vector_hash(ids of previously fetched participant IDs)| |hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched participant IDs) | Yes|
### Return type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) ### Return type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md)

View File

@ -11,10 +11,10 @@ Add users to channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The users to add| |users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The users to add | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,9 +11,9 @@ Join a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup to join| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to join | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,9 +11,9 @@ Leave a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup to leave| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup to leave | Optional|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Mark channel/supergroup history as read
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|max\_id|[int](../types/int.md) | Yes|Maximum message ID to mark as read| |max\_id|[int](../types/int.md) | Maximum message ID to mark as read | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Mark channel/supergroup messages as read
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|id|Array of [int](../types/int.md) | Yes|List of message IDs| |id|Array of [int](../types/int.md) | List of message IDs | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,11 +11,11 @@ Report a message in a supergroup/channel for spam
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user that sent the messages| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user that sent the messages | Optional|
|id|Array of [int](../types/int.md) | Yes|The IDs of messages to report| |id|Array of [int](../types/int.md) | The IDs of messages to report | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Set the supergroup/channel stickerpack
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergoup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergoup | Optional|
|stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|The stickerset| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | The stickerset | Optional|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Allow or disallow any user to invite users to this channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|enabled|[Bool](../types/Bool.md) | Yes|Allow or disallow| |enabled|[Bool](../types/Bool.md) | Allow or disallow | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Enable or disable hidden history for new channel/supergroup users
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|enabled|[Bool](../types/Bool.md) | Yes|Enable or disable hidden history for new channel/supergroup users| |enabled|[Bool](../types/Bool.md) | Enable or disable hidden history for new channel/supergroup users | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Toggle channel signatures
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|enabled|[Bool](../types/Bool.md) | Yes|Enable or disable channel signatures?| |enabled|[Bool](../types/Bool.md) | Enable or disable channel signatures? | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,11 +11,11 @@ Set the pinned message of a channel/supergroup
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|silent|[Bool](../types/Bool.md) | Optional|Pin silently| |silent|[Bool](../types/Bool.md) | Pin silently | Optional|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|id|[int](../types/int.md) | Yes|The ID of the message to pin| |id|[int](../types/int.md) | The ID of the message to pin | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,10 +11,10 @@ Update the username of a supergroup/channel
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional|The channel/supergroup| |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|username|[string](../types/string.md) | Yes|The new username| |username|[string](../types/string.md) | The new username | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Block a user
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to block| |id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to block | Optional|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Delete a contact
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The contact to delete| |id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The contact to delete | Optional|
### Return type: [contacts\_Link](../types/contacts_Link.md) ### Return type: [contacts\_Link](../types/contacts_Link.md)

View File

@ -11,9 +11,9 @@ Delete multiple contacts
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|The contacts to delete| |id|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The contacts to delete | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Get blocked users
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|offset|[int](../types/int.md) | Yes|Initially 0, then set to the number of blocked contacts previously fetched| |offset|[int](../types/int.md) | Initially 0, then set to the number of blocked contacts previously fetched | Yes|
|limit|[int](../types/int.md) | Yes|How many blocked contacts to fetch| |limit|[int](../types/int.md) | How many blocked contacts to fetch | Yes|
### Return type: [contacts\_Blocked](../types/contacts_Blocked.md) ### Return type: [contacts\_Blocked](../types/contacts_Blocked.md)

View File

@ -11,9 +11,9 @@ Get all contacts
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | Yes|$ids is the list ids of previously fetched contacts, `$hash = $MadelineProto->gen_vector_hash($ids);`| |hash|[int](../types/int.md) | $ids is the list ids of previously fetched contacts, `$hash = $MadelineProto->gen_vector_hash($ids);` | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md) ### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -11,17 +11,17 @@ Get most used chats
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|correspondents|[Bool](../types/Bool.md) | Optional|Fetch users?| |correspondents|[Bool](../types/Bool.md) | Fetch users? | Optional|
|bots\_pm|[Bool](../types/Bool.md) | Optional|Fetch bots?| |bots\_pm|[Bool](../types/Bool.md) | Fetch bots? | Optional|
|bots\_inline|[Bool](../types/Bool.md) | Optional|Fetch inline bots?| |bots\_inline|[Bool](../types/Bool.md) | Fetch inline bots? | Optional|
|phone\_calls|[Bool](../types/Bool.md) | Optional|Fetch phone calls?| |phone\_calls|[Bool](../types/Bool.md) | Fetch phone calls? | Optional|
|groups|[Bool](../types/Bool.md) | Optional|Fetch groups?| |groups|[Bool](../types/Bool.md) | Fetch groups? | Optional|
|channels|[Bool](../types/Bool.md) | Optional|Fetch channels and supergroups?| |channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Yes|Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];`| |offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | Yes|How many results to fetch| |limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | Yes|$MadelineProto->gen_vector_hash(previously fetched peer ids);| |hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md) ### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)

View File

@ -11,9 +11,9 @@ Import card as contact
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|export\_card|Array of [int](../types/int.md) | Yes|The card| |export\_card|Array of [int](../types/int.md) | The card | Yes|
### Return type: [User](../types/User.md) ### Return type: [User](../types/User.md)

View File

@ -11,9 +11,9 @@ Add phone number as contact
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|contacts|Array of [InputContact](../types/InputContact.md) | Yes|The numbers to import| |contacts|Array of [InputContact](../types/InputContact.md) | The numbers to import | Yes|
### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) ### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)

View File

@ -11,10 +11,10 @@ Reset top peer rating for a certain category/peer
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|category|[TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | |category|[TopPeerCategory](../types/TopPeerCategory.md) | The category | Yes|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| |peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The peer | Optional|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Search contacts
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|q|[string](../types/string.md) | Yes|The search query| |q|[string](../types/string.md) | The search query | Yes|
|limit|[int](../types/int.md) | Yes|How many results should be returned| |limit|[int](../types/int.md) | How many results should be returned | Yes|
### Return type: [contacts\_Found](../types/contacts_Found.md) ### Return type: [contacts\_Found](../types/contacts_Found.md)

View File

@ -11,9 +11,9 @@ Toggle top peers
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|enabled|[Bool](../types/Bool.md) | Yes|Enable or disable top peer| |enabled|[Bool](../types/Bool.md) | Enable or disable top peer | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Unblock a user
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to unblock| |id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to unblock | Optional|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Accept telegram's TOS
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|id|[DataJSON](../types/DataJSON.md) | Yes|TOS| |id|[DataJSON](../types/DataJSON.md) | TOS | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,9 +11,9 @@ Get the changelog of this app
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|prev\_app\_version|[string](../types/string.md) | Yes|Previous app version| |prev\_app\_version|[string](../types/string.md) | Previous app version | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

View File

@ -11,9 +11,9 @@ Get deep link info
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|path|[string](../types/string.md) | Yes|Deep link| |path|[string](../types/string.md) | Deep link | Yes|
### Return type: [help\_DeepLinkInfo](../types/help_DeepLinkInfo.md) ### Return type: [help\_DeepLinkInfo](../types/help_DeepLinkInfo.md)

View File

@ -11,9 +11,9 @@ Get recent t.me URLs
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|referer|[string](../types/string.md) | Yes|Referrer| |referer|[string](../types/string.md) | Referrer | Yes|
### Return type: [help\_RecentMeUrls](../types/help_RecentMeUrls.md) ### Return type: [help\_RecentMeUrls](../types/help_RecentMeUrls.md)

View File

@ -11,9 +11,9 @@ Log data for developer of this app
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|events|Array of [InputAppEvent](../types/InputAppEvent.md) | Yes|Event list| |events|Array of [InputAppEvent](../types/InputAppEvent.md) | Event list | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,10 +11,10 @@ Set the update status of webhook
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|pending\_updates\_count|[int](../types/int.md) | Yes|Pending update count| |pending\_updates\_count|[int](../types/int.md) | Pending update count | Yes|
|message|[string](../types/string.md) | Yes|Message| |message|[string](../types/string.md) | Message | Yes|
### Return type: [Bool](../types/Bool.md) ### Return type: [Bool](../types/Bool.md)

View File

@ -11,17 +11,17 @@ Initializes connection and save information on the user's device and application
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|api\_id|[int](../types/int.md) | Yes|Application identifier| |api\_id|[int](../types/int.md) | Application identifier | Yes|
|device\_model|[string](../types/string.md) | Yes|Device model| |device\_model|[string](../types/string.md) | Device model | Yes|
|system\_version|[string](../types/string.md) | Yes|System version| |system\_version|[string](../types/string.md) | System version | Yes|
|app\_version|[string](../types/string.md) | Yes|App version| |app\_version|[string](../types/string.md) | App version | Yes|
|system\_lang\_code|[string](../types/string.md) | Yes|Language code| |system\_lang\_code|[string](../types/string.md) | Language code | Yes|
|lang\_pack|[string](../types/string.md) | Yes|Language pack to use| |lang\_pack|[string](../types/string.md) | Language pack to use | Yes|
|lang\_code|[string](../types/string.md) | Yes|Language code to set| |lang\_code|[string](../types/string.md) | Language code to set | Yes|
|proxy|[InputClientProxy](../types/InputClientProxy.md) | Optional|The current proxy| |proxy|[InputClientProxy](../types/InputClientProxy.md) | The current proxy | Optional|
|query|[!X](../types/!X.md) | Yes|Nested query| |query|[!X](../types/!X.md) | Nested query | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,10 +11,10 @@ Invokes a query after successfull completion of one of the previous queries.
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|msg\_id|[long](../types/long.md) | Yes|Message identifier on which a current query depends| |msg\_id|[long](../types/long.md) | Message identifier on which a current query depends | Yes|
|query|[!X](../types/!X.md) | Yes|The query itself| |query|[!X](../types/!X.md) | The query itself | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,10 +11,10 @@ Result type returned by a current query.
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|msg\_ids|Array of [long](../types/long.md) | Yes|List of messages on which a current query depends| |msg\_ids|Array of [long](../types/long.md) | List of messages on which a current query depends | Yes|
|query|[!X](../types/!X.md) | Yes|The query itself| |query|[!X](../types/!X.md) | The query itself | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,10 +11,10 @@ Invoke this method with layer X
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|layer|[int](../types/int.md) | Yes|The layer version| |layer|[int](../types/int.md) | The layer version | Yes|
|query|[!X](../types/!X.md) | Yes|The query| |query|[!X](../types/!X.md) | The query | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,10 +11,10 @@ Invoke with messages range
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|range|[MessageRange](../types/MessageRange.md) | Yes|The range| |range|[MessageRange](../types/MessageRange.md) | The range | Yes|
|query|[!X](../types/!X.md) | Yes|The query| |query|[!X](../types/!X.md) | The query | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,10 +11,10 @@ Invoke method from takeout session
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|takeout\_id|[long](../types/long.md) | Yes|The takeout session ID| |takeout\_id|[long](../types/long.md) | The takeout session ID | Yes|
|query|[!X](../types/!X.md) | Yes|The query| |query|[!X](../types/!X.md) | The query | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,9 +11,9 @@ Invoke with method without returning updates in the socket
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|query|[!X](../types/!X.md) | Yes|The query| |query|[!X](../types/!X.md) | The query | Yes|
### Return type: [X](../types/X.md) ### Return type: [X](../types/X.md)

View File

@ -11,9 +11,9 @@ Get language pack updates
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|from\_version|[int](../types/int.md) | Yes|Previous version| |from\_version|[int](../types/int.md) | Previous version | Yes|
### Return type: [LangPackDifference](../types/LangPackDifference.md) ### Return type: [LangPackDifference](../types/LangPackDifference.md)

View File

@ -11,9 +11,9 @@ Get language pack
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|lang\_code|[string](../types/string.md) | Yes|Language code| |lang\_code|[string](../types/string.md) | Language code | Yes|
### Return type: [LangPackDifference](../types/LangPackDifference.md) ### Return type: [LangPackDifference](../types/LangPackDifference.md)

View File

@ -11,10 +11,10 @@ Get language pack strings
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|lang\_code|[string](../types/string.md) | Yes|Language code| |lang\_code|[string](../types/string.md) | Language code | Yes|
|keys|Array of [string](../types/string.md) | Yes|Keys| |keys|Array of [string](../types/string.md) | Keys | Yes|
### Return type: [Vector\_of\_LangPackString](../types/LangPackString.md) ### Return type: [Vector\_of\_LangPackString](../types/LangPackString.md)

View File

@ -11,11 +11,11 @@ Add a user to a normal chat (use channels->inviteToChannel for supergroups)
### Parameters: ### Parameters:
| Name | Type | Required | Description | | Name | Type | Description | Required |
|----------|---------------|----------|-------------| |----------|---------------|-------------|----------|
|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The chat where to invite users| |chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to invite users | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Optional|The user to invite| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to invite | Optional|
|fwd\_limit|[int](../types/int.md) | Yes|Number of old messages the user will see| |fwd\_limit|[int](../types/int.md) | Number of old messages the user will see | Yes|
### Return type: [Updates](../types/Updates.md) ### Return type: [Updates](../types/Updates.md)

Some files were not shown because too many files have changed in this diff Show More