telegram api constructor · layer 229 · #957b50fb
account.password
Configuration for two-factor authorization
definition
account.password#957b50fb flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int login_email_pattern:flags.6?string = account.Password;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
has_recovery | true | Whether the user has a recovery method configured |
has_secure_values | true | Whether telegram passport is enabled |
has_password | true | Whether the user has a password |
current_algo | PasswordKdfAlgo | The KDF algorithm for SRP two-factor authentication of the current password |
srp_B | bytes | Srp B param for SRP authorization |
srp_id | long | Srp ID param for SRP authorization |
hint | string | Text hint for the password |
email_unconfirmed_pattern | string | A password recovery email with the specified pattern is still awaiting verification |
new_algo | PasswordKdfAlgo | The KDF algorithm for SRP two-factor authentication to use when creating new passwords |
new_secure_algo | SecurePasswordKdfAlgo | The KDF algorithm for telegram passport |
secure_random | bytes | Secure random string |
pending_reset_date | int | The 2FA password will be automatically removed at this date, unless the user cancels the operation |
login_email_pattern | string | A verified login email with the specified pattern is configured |
type
history
present in layers 46–229 · constructor id changed 5×
| id | layers |
|---|---|
| #7c18141c | 46–79 |
| #ca39b447 | 80–82 |
| #68873ba5 | 83 |
| #ad2641f8 | 84–130 |
| #185b184f | 131–144 |
| #957b50fb | 145–229 |