MadelineProtoDocs/old_docs/API_docs_v82/constructors/account_password.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.9 KiB

title description image
account.password Password https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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?
current_salt bytes Yes Current salt
new_salt bytes Yes New salt
new_secure_salt bytes Yes New secure salt
secure_random bytes Yes Secure random
hint string Yes Hint
email_unconfirmed_pattern string Yes Email unconfirmed pattern

Type: account_Password

Example:

$account_password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'current_salt' => 'bytes', 'new_salt' => 'bytes', 'new_secure_salt' => 'bytes', 'secure_random' => 'bytes', 'hint' => 'string', 'email_unconfirmed_pattern' => 'string'];

PWRTelegram json-encoded version:

{"_": "account.password", "has_recovery": Bool, "has_secure_values": Bool, "current_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_secure_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secure_random": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email_unconfirmed_pattern": "string"}

Or, if you're into Lua:

account_password={_='account.password', has_recovery=Bool, has_secure_values=Bool, current_salt='bytes', new_salt='bytes', new_secure_salt='bytes', secure_random='bytes', hint='string', email_unconfirmed_pattern='string'}