MadelineProtoDocs/old_docs/API_docs_v109/constructors/inputSecureFileUploaded.md
2020-03-06 12:24:14 +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'}