MadelineProtoDocs/old_docs/API_docs_v81/constructors/inputSecureFileUploaded.md
2018-07-12 20:24:55 +02:00

1.2 KiB

title description image
inputSecureFileUploaded inputSecureFileUploaded attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputSecureFileUploaded

Back to constructors index

Attributes:

Name Type Required
id long Yes
parts int Yes
md5_checksum string Yes
file_hash bytes Yes
secret bytes Yes

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