MadelineProtoDocs/old_docs/API_docs_v100/constructors/upload.file.md
2019-12-27 18:46:25 +01:00

899 B

title description image redirect_from
upload.file File content. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/upload_file.html

Constructor: upload.file

Back to constructors index

File content.

Attributes:

Name Type Required Description
type storage.FileType Yes File type
mtime int Yes Modification type
bytes bytes Yes Binary data, file content

Type: upload.File

Example:

$upload.file = ['_' => 'upload.file', 'type' => storage.FileType, 'mtime' => int, 'bytes' => 'bytes'];

Or, if you're into Lua:

upload.file={_='upload.file', type=storage.FileType, mtime=int, bytes='bytes'}