Link Search Menu Expand Document

Constructor: secureValue

Back to constructors index

Secure value

Attributes:

NameTypeRequiredDescription
typeSecureValueTypeYesSecure passport value type
dataSecureDataOptionalEncrypted Telegram Passport element data
front_sideSecureFileOptionalEncrypted passport file with the front side of the document
reverse_sideSecureFileOptionalEncrypted passport file with the reverse side of the document
selfieSecureFileOptionalEncrypted passport file with a selfie of the user holding the document
translationArray of SecureFileOptionalArray of encrypted passport files with translated versions of the provided documents
filesArray of SecureFileOptionalArray of encrypted passport files with photos the of the documents
plain_dataSecurePlainDataOptionalPlaintext verified passport data
hashbytesYesData hash

Type: SecureValue

Example:

$secureValue = ['_' => 'secureValue', 'type' => SecureValueType, 'data' => SecureData, 'front_side' => SecureFile, 'reverse_side' => SecureFile, 'selfie' => SecureFile, 'translation' => [SecureFile, SecureFile], 'files' => [SecureFile, SecureFile], 'plain_data' => SecurePlainData, 'hash' => 'bytes'];