MadelineProto/docs/TD_docs/constructors/passwordState.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.3 KiB

title description
passwordState Represents current state of the two-step verification

Constructor: passwordState

Back to constructors index

Represents current state of the two-step verification

Attributes:

Name Type Required Description
has_password Bool Yes Is password set up
password_hint string Yes Hint on password, can be empty
has_recovery_email Bool Yes Is recovery email set up
unconfirmed_recovery_email_pattern string Yes Pattern of email to which confirmation mail was sent

Type: PasswordState

Example:

$passwordState = ['_' => 'passwordState', 'has_password' => Bool, 'password_hint' => 'string', 'has_recovery_email' => Bool, 'unconfirmed_recovery_email_pattern' => 'string'];

PWRTelegram json-encoded version:

{"_": "passwordState", "has_password": Bool, "password_hint": "string", "has_recovery_email": Bool, "unconfirmed_recovery_email_pattern": "string"}

Or, if you're into Lua:

passwordState={_='passwordState', has_password=Bool, password_hint='string', has_recovery_email=Bool, unconfirmed_recovery_email_pattern='string'}