This commit is contained in:
Daniil Gentili 2018-03-20 19:43:34 +01:00
parent 24414ad22f
commit 78932e02d0
23 changed files with 204 additions and 160 deletions

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -1,20 +1,22 @@
---
title: account.passwordInputSettings
description: account_passwordInputSettings attributes, type and example
description: 2FA password settings
---
## Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional|
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_salt|[bytes](../types/bytes.md) | Optional|`$new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);`|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional||
|email|[string](../types/string.md) | Optional||

View File

@ -2604,7 +2604,7 @@ class Lang
'object_account.password_param_email_unconfirmed_pattern_type_string' => '',
'object_account.passwordSettings' => '',
'object_account.passwordSettings_param_email_type_string' => '',
'object_account.passwordInputSettings' => '',
'object_account.passwordInputSettings' => '2FA password settings',
'object_account.passwordInputSettings_param_new_salt_type_bytes' => '`$new_salt = $MadelineProto->account->getPassword()[\'new_salt\'].$MadelineProto->random(8);`',
'object_account.passwordInputSettings_param_new_password_hash_type_bytes' => '`hash(\'sha256\', $new_salt.$new_password.$new_salt, true)`',
'object_account.passwordInputSettings_param_hint_type_string' => '',
@ -4406,9 +4406,9 @@ class Lang
'method_account.resetAuthorization_param_hash_type_long' => 'The session hash, obtained from $MadelineProto->account->getAuthorizations',
'method_account.getPassword' => 'Get the current password',
'method_account.getPasswordSettings' => 'Get the current 2FA settings',
'method_account.getPasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);',
'method_account.getPasswordSettings_param_current_password_hash_type_bytes' => '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);`',
'method_account.updatePasswordSettings' => 'Update the 2FA password settings',
'method_account.updatePasswordSettings_param_current_password_hash_type_bytes' => '$current_salt = $MadelineProto->account->getPassword()[\'current_salt\']; $current_password_hash = hash(\'sha256\', $current_salt.$password.$current_salt);',
'method_account.updatePasswordSettings_param_current_password_hash_type_bytes' => '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);`',
'method_account.updatePasswordSettings_param_new_settings_type_account.PasswordInputSettings' => 'New 2FA settings',
'method_account.sendConfirmPhoneCode' => 'Send confirmation phone code',
'method_account.sendConfirmPhoneCode_param_allow_flashcall_type_true' => 'Can telegram call you instead of sending an SMS?',
@ -4430,7 +4430,7 @@ class Lang
'method_users.getFullUser_param_id_type_InputUser' => 'You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info)',
'method_contacts.getStatuses' => 'Get online status of all users',
'method_contacts.getContacts' => 'Get info about a certain contact',
'method_contacts.getContacts_param_hash_type_int' => '$ids is the list ids of previously fetched contacts, $hash = $MadelineProto->gen_vector_hash($ids);',
'method_contacts.getContacts_param_hash_type_int' => '$ids is the list ids of previously fetched contacts, `$hash = $MadelineProto->gen_vector_hash($ids);`',
'method_contacts.importContacts' => 'Add phone number as contact',
'method_contacts.importContacts_param_contacts_type_Vector t' => 'The numbers to import',
'method_contacts.deleteContact' => 'Delete a contact',
@ -5150,8 +5150,8 @@ class Lang
'method_geochats.createGeoChat_param_address_type_string' => '',
'method_geochats.createGeoChat_param_venue_type_string' => '',
'method_account.setPassword' => '',
'method_account.setPassword_param_current_password_hash_type_bytes' => '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);`',
'method_account.setPassword_param_new_salt_type_bytes' => '`$new_salt = $MadelineProto->account->getPassword()[\'new_salt\'].$MadelineProto->random(8);`',
'method_account.setPassword_param_current_password_hash_type_bytes' => '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);`',
'method_account.setPassword_param_new_salt_type_bytes' => '',
'method_account.setPassword_param_new_password_hash_type_bytes' => '`hash(\'sha256\', $new_salt.$new_password.$new_salt, true)`',
'method_account.setPassword_param_hint_type_string' => '',
'method_messages.installStickerSet_param_disabled_type_Bool' => '',