Airgram

Guides
/
/
Output types

PasswordState

Represents the current state of 2-step verification.

This is an alias for the PasswordStateUnion type.


NameTypeDescription
_"passwordState"
hasPasswordboolean True, if a 2-step verification password is set
passwordHintstring Hint for the password; may be empty
hasRecoveryEmailAddressboolean True, if a recovery email is set
hasPassportDataboolean 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
pendingResetDatenumber If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword