MadelineProtoDocs/docs/API_docs/constructors/secureValue.md
2024-05-01 14:53:46 +02:00

2.1 KiB

title description nav_exclude image
secureValue Secure value true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: secureValue

Back to constructors index

Secure value

Attributes:

Name Type Required Description
type SecureValueType Yes Secure passport value type
data SecureData Optional Encrypted Telegram Passport element data
front_side SecureFile Optional Encrypted passport file with the front side of the document
reverse_side SecureFile Optional Encrypted passport file with the reverse side of the document
selfie SecureFile Optional Encrypted passport file with a selfie of the user holding the document
translation Array of SecureFile Optional Array of encrypted passport files with translated versions of the provided documents
files Array of SecureFile Optional Array of encrypted passport files with photos the of the documents
plain_data SecurePlainData Optional Plaintext verified passport data
hash bytes Yes Data 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'];