MadelineProtoDocs/old_docs/API_docs_v65/constructors/upload_file.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

973 B

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

Constructor: upload.file

Back to constructors index

File

Attributes:

Name Type Required Description
type storage_FileType Yes Type
mtime int Yes Mtime
bytes bytes Yes Bytes

Type: upload_File

Example:

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

PWRTelegram json-encoded version:

{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

upload_file={_='upload.file', type=storage_FileType, mtime=int, bytes='bytes'}