PasswordState
Represents the current state of 2-step verification.
This is an alias for the PasswordStateUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "passwordState" | |
hasPassword | boolean | True, if a 2-step verification password is set |
passwordHint | string | Hint for the password; may be empty |
hasRecoveryEmailAddress | boolean | True, if a recovery email is set |
hasPassportData | boolean | True, if some Telegram Passport elements were saved |
recoveryEmailAddressCodeInfo | Information about the recovery email address to which the confirmation email was sent; may be null | |
pendingResetDate | number | If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword |