Sha256: 529c1a0bfb7703729c5fbed30aab502fcf83e903ed6ec4d9b8cddf0405d68673

Contents?: true

Size: 882 Bytes

Versions: 1

Compression:

Stored size: 882 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 [String, nil] Hint for the password; can 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 unconfirmed_recovery_email_address_pattern [String] Pattern of the email address to which the confirmation
  #   email was sent.
  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 :unconfirmed_recovery_email_address_pattern, TD::Types::String
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdlib-ruby-2.0.0 lib/tdlib/types/password_state.rb