Sha256: 51eb1323b80500fab6bb2e2e9b2e746b9eab552caff9e196090e7673cc32815d

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

module TD::Types
  # Represents the current state of 2-step verification.
  #
  # @attr has_password [Boolean] True, if a 2-step verification password is set.
  # @attr password_hint [TD::Types::String, nil] Hint for the password; may be empty.
  # @attr has_recovery_email_address [Boolean] True, if a recovery email is set.
  # @attr has_passport_data [Boolean] True, if some Telegram Passport elements were saved.
  # @attr recovery_email_address_code_info [TD::Types::EmailAddressAuthenticationCodeInfo, nil] Information about the
  #   recovery email address to which the confirmation email was sent; may be null.
  class PasswordState < Base
    attribute :has_password, TD::Types::Bool
    attribute :password_hint, TD::Types::String.optional.default(nil)
    attribute :has_recovery_email_address, TD::Types::Bool
    attribute :has_passport_data, TD::Types::Bool
    attribute :recovery_email_address_code_info, TD::Types::EmailAddressAuthenticationCodeInfo.optional.default(nil)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/password_state.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/password_state.rb