Class: TD::Types::PasswordState

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/password_state.rb

Overview

Represents the current state of 2-step verification.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#has_passport_dataBoolean

True, if some Telegram Passport elements were saved.

Returns:

  • (Boolean)

    the current value of has_passport_data



10
11
12
# File 'lib/tdlib/types/password_state.rb', line 10

def has_passport_data
  @has_passport_data
end

#has_passwordBoolean

True, if a 2-step verification password is set.

Returns:

  • (Boolean)

    the current value of has_password



10
11
12
# File 'lib/tdlib/types/password_state.rb', line 10

def has_password
  @has_password
end

#has_recovery_email_addressBoolean

True, if a recovery email is set.

Returns:

  • (Boolean)

    the current value of has_recovery_email_address



10
11
12
# File 'lib/tdlib/types/password_state.rb', line 10

def has_recovery_email_address
  @has_recovery_email_address
end

#password_hintTD::Types::String?

Hint for the password; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of password_hint



10
11
12
# File 'lib/tdlib/types/password_state.rb', line 10

def password_hint
  @password_hint
end

#recovery_email_address_code_infoTD::Types::EmailAddressAuthenticationCodeInfo?

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

Returns:



10
11
12
# File 'lib/tdlib/types/password_state.rb', line 10

def recovery_email_address_code_info
  @recovery_email_address_code_info
end