Link Search Menu Expand Document

Constructor: account.password

Back to constructors index

Configuration for two-factor authorization

Attributes:

NameTypeRequiredDescription
has_recoveryBoolOptionalWhether the user has a recovery method configured
has_secure_valuesBoolOptionalWhether telegram passport is enabled
has_passwordBoolOptionalWhether the user has a password
current_algoPasswordKdfAlgoOptionalThe KDF algorithm for SRP two-factor authentication of the current password
srp_BbytesOptionalSrp B param for SRP authorization
srp_idlongOptionalSrp ID param for SRP authorization
hintstringOptionalText hint for the password
email_unconfirmed_patternstringOptionalA password recovery email with the specified pattern is still awaiting verification
new_algoPasswordKdfAlgoYesThe KDF algorithm for SRP two-factor authentication to use when creating new passwords
new_secure_algoSecurePasswordKdfAlgoYesThe KDF algorithm for telegram passport
secure_randombytesYesSecure random string
pending_reset_dateintOptionalThe 2FA password will be automatically removed at this date, unless the user cancels the operation
login_email_patternstringOptionalA verified login email with the specified pattern is configured

Type: account.Password

Example:

$account_password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'has_password' => Bool, 'current_algo' => PasswordKdfAlgo, 'srp_B' => 'bytes', 'srp_id' => long, 'hint' => 'string', 'email_unconfirmed_pattern' => 'string', 'new_algo' => PasswordKdfAlgo, 'new_secure_algo' => SecurePasswordKdfAlgo, 'secure_random' => 'bytes', 'pending_reset_date' => int, 'login_email_pattern' => 'string'];