MadelineProto/docs/TD_docs/constructors/passwordState.md

1.1 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, ];

Or, if you're into Lua:

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