MadelineProtoDocs/old_docs/API_docs_v102/constructors/secureData.md
2019-12-27 17:48:04 +01:00

1.0 KiB

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

Constructor: secureData

Back to constructors index

Secure passport data, for more info see the passport docs »

Attributes:

Name Type Required Description
data bytes Yes Data
data_hash bytes Yes Data hash
secret bytes Yes Secret

Type: SecureData

Example:

$secureData = ['_' => 'secureData', 'data' => 'bytes', 'data_hash' => 'bytes', 'secret' => 'bytes'];

Or, if you're into Lua:

secureData={_='secureData', data='bytes', data_hash='bytes', secret='bytes'}