mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 03:36:55 +01:00
1.3 KiB
1.3 KiB
title | description |
---|---|
passwordState | Represents current state of the two-step verification |
Constructor: passwordState
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, }