Class: TD::Types::EncryptedPassportElement

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

Overview

Contains information about an encrypted Telegram Passport element; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#dataString

Encrypted JSON-encoded data about the user.

Returns:

  • (String)

    the current value of data



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def data
  @data
end

#filesArray<TD::Types::DatedFile>

List of attached files.

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def files
  @files
end

#front_sideTD::Types::DatedFile

The front side of an identity document.

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def front_side
  @front_side
end

#hashTD::Types::String

Hash of the entire element.

Returns:

  • (TD::Types::String)

    the current value of hash



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def hash
  @hash
end

#reverse_sideTD::Types::DatedFile?

The reverse side of an identity document; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def reverse_side
  @reverse_side
end

#selfieTD::Types::DatedFile?

Selfie with the document; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def selfie
  @selfie
end

#translationArray<TD::Types::DatedFile>

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

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def translation
  @translation
end

#typeTD::Types::PassportElementType

Type of Telegram Passport element.

Returns:



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def type
  @type
end

#valueTD::Types::String

Unencrypted data, phone number or email address.

Returns:

  • (TD::Types::String)

    the current value of value



14
15
16
# File 'lib/tdlib/types/encrypted_passport_element.rb', line 14

def value
  @value
end