Class: TD::Types::AuthorizationState::WaitPassword

Inherits:
TD::Types::AuthorizationState show all
Defined in:
lib/tdlib/types/authorization_state/wait_password.rb

Overview

The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the

password, or deleteAccount to delete the account after a week.

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



11
12
13
# File 'lib/tdlib/types/authorization_state/wait_password.rb', line 11

def has_passport_data
  @has_passport_data
end

#has_recovery_email_addressBoolean

True, if a recovery email address has been set up.

Returns:

  • (Boolean)

    the current value of has_recovery_email_address



11
12
13
# File 'lib/tdlib/types/authorization_state/wait_password.rb', line 11

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



11
12
13
# File 'lib/tdlib/types/authorization_state/wait_password.rb', line 11

def password_hint
  @password_hint
end

#recovery_email_address_patternTD::Types::String?

Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent.

Returns:

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

    the current value of recovery_email_address_pattern



11
12
13
# File 'lib/tdlib/types/authorization_state/wait_password.rb', line 11

def recovery_email_address_pattern
  @recovery_email_address_pattern
end