MadelineProtoDocs/docs/API_docs/constructors/inputFile.md
2024-05-01 14:53:46 +02:00

1.1 KiB

title description nav_exclude image
inputFile Defines a file saved in parts using the method upload.saveFilePart. true 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'];