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

1.3 KiB

title description image
inputSecureFileUploaded Secure file uploaded https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputSecureFileUploaded

Back to constructors index

Secure file uploaded

Attributes:

Name Type Required Description
id long Yes ID
parts int Yes Parts
md5_checksum string Yes Md5 checksum
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'];

PWRTelegram json-encoded version:

{"_": "inputSecureFileUploaded", "id": long, "parts": int, "md5_checksum": "string", "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

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