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

1.3 KiB

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

Constructor: inputSecureFileUploaded

Back to constructors index

Uploaded secure file, for more info see the passport docs »

Attributes:

Name Type Required Description
id long Yes Secure file ID
parts int Yes Secure file part count
md5_checksum string Yes MD5 hash of encrypted uploaded file, to be checked server-side
file_hash bytes Yes File hash
secret bytes Yes Secret

Type: InputSecureFile

Example:

$inputSecureFileUploaded = ['_' => 'inputSecureFileUploaded', 'id' => long, 'parts' => int, 'md5_checksum' => 'string', 'file_hash' => 'bytes', 'secret' => 'bytes'];

Or, if you're into Lua:

inputSecureFileUploaded={_='inputSecureFileUploaded', id=long, parts=int, md5_checksum='string', file_hash='bytes', secret='bytes'}