MadelineProtoDocs/old_docs/API_docs_v86/constructors/upload_file.md
2019-12-27 17:48:04 +01:00

839 B

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

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