MadelineProtoDocs/old_docs/API_docs_v82/constructors/secureValue.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.7 KiB

title description image
secureValue Secure value 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 Type
data SecureData Optional Data
front_side SecureFile Optional Front side
reverse_side SecureFile Optional Reverse side
selfie SecureFile Optional Selfie
files Array of SecureFile Optional Files
plain_data SecurePlainData Optional Plain data
hash bytes Yes Hash

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'}