MadelineProtoDocs/old_docs/API_docs_v81/constructors/secureValue.md
2018-07-12 20:24:55 +02:00

1.7 KiB

title description image
secureValue secureValue attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: secureValue

Back to constructors index

Attributes:

Name Type Required
type SecureValueType Yes
data SecureData Optional
front_side SecureFile Optional
reverse_side SecureFile Optional
selfie SecureFile Optional
files Array of SecureFile Optional
plain_data SecurePlainData Optional
hash bytes Yes

Type: SecureValue

Example:

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

PWRTelegram json-encoded version:

{"_": "secureValue", "type": SecureValueType, "data": SecureData, "front_side": SecureFile, "reverse_side": SecureFile, "selfie": SecureFile, "files": [SecureFile], "plain_data": SecurePlainData, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

secureValue={_='secureValue', type=SecureValueType, data=SecureData, front_side=SecureFile, reverse_side=SecureFile, selfie=SecureFile, files={SecureFile}, plain_data=SecurePlainData, hash='bytes'}