Skip to content

PasswordState

Type · TDLib 1.8.67 · d1085f9c

Represents the current state of 2-step verification

PasswordState(
  has_password: Bool,
  password_hint: string,
  has_recovery_email_address: Bool,
  has_passport_data: Bool,
  recovery_email_address_code_info: EmailAddressAuthenticationCodeInfo,
  login_email_address_pattern: string,
  pending_reset_date: int32
) → PasswordState

has_password

Bool

True, if a 2-step verification password is set

password_hint

string

Hint for the password; may be empty

has_recovery_email_address

Bool

True, if a recovery email is set

has_passport_data

Bool

True, if some Telegram Passport elements were saved

recovery_email_address_code_info

EmailAddressAuthenticationCodeInfo

Information about the recovery email address to which the confirmation email was sent; may be null

login_email_address_pattern

string

Pattern of the email address set up for logging in

pending_reset_date

int32

If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword