MadelineProtoDocs/old_docs/API_docs_v21/constructors/inputFile.md
2020-06-16 17:50:25 +02:00

1.2 KiB

title description image
inputFile Defines a file saved in parts using the method [upload.saveFilePart](../methods/upload.saveFilePart.md). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputFile

Back to constructors index

Defines a file saved in parts using the method upload.saveFilePart.

Attributes:

Name Type Required Description
id long Yes Random file identifier created by the client
parts int Yes Number of parts saved
name string Yes Full name of the file
md5_checksum string Yes In case the file's md5-hash was passed, contents of the file will be checked prior to use

Type: InputFile

Example:

$inputFile = ['_' => 'inputFile', 'id' => long, 'parts' => int, 'name' => 'string', 'md5_checksum' => 'string'];

Or, if you're into Lua:

inputFile={_='inputFile', id=long, parts=int, name='string', md5_checksum='string'}