Class: TD::Types::InputIdentityDocument

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

Overview

An identity document to be saved to Telegram Passport.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#expiration_dateTD::Types::Date

Document expiration date; pass null if not applicable.

Returns:



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def expiration_date
  @expiration_date
end

#front_sideTD::Types::InputFile

Front side of the document.

Returns:



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def front_side
  @front_side
end

#numberTD::Types::String

Document number; 1-24 characters.

Returns:

  • (TD::Types::String)

    the current value of number



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def number
  @number
end

#reverse_sideTD::Types::InputFile

Reverse side of the document; only for driver license and identity card; pass null otherwise.

Returns:



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def reverse_side
  @reverse_side
end

#selfieTD::Types::InputFile

Selfie with the document; pass null if unavailable.

Returns:



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def selfie
  @selfie
end

#translationArray<TD::Types::InputFile>

List of files containing a certified English translation of the document.

Returns:



12
13
14
# File 'lib/tdlib/types/input_identity_document.rb', line 12

def translation
  @translation
end