Constructor: account.passwordInputSettings

Back to constructors index

2FA password settings

Attributes:

Name Type Required Description
new_salt bytes Optional $new_salt = $MadelineProto->account->getPassword()['new_salt'].$MadelineProto->random(8);
new_password_hash bytes Optional hash('sha256', $new_salt.$new_password.$new_salt, true)
hint string Optional  
email string Optional  
new_secure_salt bytes Optional  
new_secure_secret bytes Optional  
new_secure_secret_id long Optional  

Type: account_PasswordInputSettings

Example:

$account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_salt' => 'bytes', 'new_password_hash' => 'bytes', 'hint' => 'string', 'email' => 'string', 'new_secure_salt' => 'bytes', 'new_secure_secret' => 'bytes', 'new_secure_secret_id' => long];

PWRTelegram json-encoded version:

{"_": "account.passwordInputSettings", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string", "new_secure_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_secure_secret": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_secure_secret_id": long}

Or, if you’re into Lua:

account_passwordInputSettings={_='account.passwordInputSettings', new_salt='bytes', new_password_hash='bytes', hint='string', email='string', new_secure_salt='bytes', new_secure_secret='bytes', new_secure_secret_id=long}