Constructor: account.password

Back to constructors index

Password

Attributes:

Name Type Required Description
has_recovery Bool Optional Has recovery?
has_secure_values Bool Optional Has secure values?
has_password Bool Optional Has password?
current_algo PasswordKdfAlgo Optional Current algo
srp_B bytes Optional Srp b
srp_id long Optional Srp ID
hint string Optional Hint
email_unconfirmed_pattern string Optional Email unconfirmed pattern
new_algo PasswordKdfAlgo Yes New algo
new_secure_algo SecurePasswordKdfAlgo Yes New secure algo
secure_random bytes Yes Secure random

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'];

PWRTelegram json-encoded version:

{"_": "account.password", "has_recovery": Bool, "has_secure_values": Bool, "has_password": Bool, "current_algo": PasswordKdfAlgo, "srp_B": {"_": "bytes", "bytes":"base64 encoded bytes"}, "srp_id": long, "hint": "string", "email_unconfirmed_pattern": "string", "new_algo": PasswordKdfAlgo, "new_secure_algo": SecurePasswordKdfAlgo, "secure_random": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you’re into Lua:

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'}