Class: TD::Types::PassportSuitableElement

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

Overview

Contains information about a Telegram Passport element that was requested by a service.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_native_name_requiredBoolean

True, if personal details must include the user’s name in the language of their country of residence.

Returns:

  • (Boolean)

    the current value of is_native_name_required



9
10
11
# File 'lib/tdlib/types/passport_suitable_element.rb', line 9

def is_native_name_required
  @is_native_name_required
end

#is_selfie_requiredBoolean

True, if a selfie is required with the identity document.

Returns:

  • (Boolean)

    the current value of is_selfie_required



9
10
11
# File 'lib/tdlib/types/passport_suitable_element.rb', line 9

def is_selfie_required
  @is_selfie_required
end

#is_translation_requiredBoolean

True, if a certified English translation is required with the document.

Returns:

  • (Boolean)

    the current value of is_translation_required



9
10
11
# File 'lib/tdlib/types/passport_suitable_element.rb', line 9

def is_translation_required
  @is_translation_required
end

#typeTD::Types::PassportElementType

Type of the element.

Returns:



9
10
11
# File 'lib/tdlib/types/passport_suitable_element.rb', line 9

def type
  @type
end