Class: TD::Types::PasswordState
- Defined in:
- lib/tdlib/types/password_state.rb
Overview
Represents the current state of 2-step verification.
Instance Attribute Summary collapse
-
#has_passport_data ⇒ Boolean
True, if some Telegram Passport elements were saved.
-
#has_password ⇒ Boolean
True, if a 2-step verification password is set.
-
#has_recovery_email_address ⇒ Boolean
True, if a recovery email is set.
-
#login_email_address_pattern ⇒ TD::Types::String
Pattern of the email address set up for logging in.
-
#password_hint ⇒ TD::Types::String?
Hint for the password; may be empty.
-
#pending_reset_date ⇒ Integer
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword.
-
#recovery_email_address_code_info ⇒ TD::Types::EmailAddressAuthenticationCodeInfo?
Information about the recovery email address to which the confirmation email was sent; may be null.
Method Summary
Methods inherited from Base
Instance Attribute Details
#has_passport_data ⇒ Boolean
True, if some Telegram Passport elements were saved.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def has_passport_data @has_passport_data end |
#has_password ⇒ Boolean
True, if a 2-step verification password is set.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def has_password @has_password end |
#has_recovery_email_address ⇒ Boolean
True, if a recovery email is set.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def has_recovery_email_address @has_recovery_email_address end |
#login_email_address_pattern ⇒ TD::Types::String
Pattern of the email address set up for logging in.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def login_email_address_pattern @login_email_address_pattern end |
#password_hint ⇒ TD::Types::String?
Hint for the password; may be empty.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def password_hint @password_hint end |
#pending_reset_date ⇒ Integer
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def pending_reset_date @pending_reset_date end |
#recovery_email_address_code_info ⇒ TD::Types::EmailAddressAuthenticationCodeInfo?
Information about the recovery email address to which the confirmation email was sent; may be null.
13 14 15 |
# File 'lib/tdlib/types/password_state.rb', line 13 def recovery_email_address_code_info @recovery_email_address_code_info end |