MadelineProtoDocs/docs/API_docs/constructors/inputSecureValue.md

2.3 KiB

title description image
inputSecureValue Secure value, [for more info see the passport docs »](https://core.telegram.org/passport/encryption#encryption) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputSecureValue

Back to constructors index

Secure value, for more info see the passport docs »

Attributes:

Name Type Required Description
type SecureValueType Yes Secure passport value type
data SecureData Optional Encrypted Telegram Passport element data
front_side InputSecureFile Optional Encrypted passport file with the front side of the document
reverse_side InputSecureFile Optional Encrypted passport file with the reverse side of the document
selfie InputSecureFile Optional Encrypted passport file with a selfie of the user holding the document
translation Array of InputSecureFile Optional Translation
files Array of InputSecureFile Optional Files
plain_data SecurePlainData Optional Plaintext verified passport data

Type: InputSecureValue

Example:

$inputSecureValue = ['_' => 'inputSecureValue', 'type' => SecureValueType, 'data' => SecureData, 'front_side' => InputSecureFile, 'reverse_side' => InputSecureFile, 'selfie' => InputSecureFile, 'translation' => [InputSecureFile, InputSecureFile], 'files' => [InputSecureFile, InputSecureFile], 'plain_data' => SecurePlainData];

Or, if you're into Lua:

inputSecureValue={_='inputSecureValue', type=SecureValueType, data=SecureData, front_side=InputSecureFile, reverse_side=InputSecureFile, selfie=InputSecureFile, translation={InputSecureFile}, files={InputSecureFile}, plain_data=SecurePlainData}