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

1.2 KiB

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

Constructor: upload.webFile

Back to constructors index

Web file

Attributes:

Name Type Required Description
size int Yes Size
mime_type string Yes Mime type
file_type storage_FileType Yes File type
mtime int Yes Mtime
bytes bytes Yes Bytes

Type: upload_WebFile

Example:

$upload_webFile = ['_' => 'upload.webFile', 'size' => int, 'mime_type' => 'string', 'file_type' => storage_FileType, 'mtime' => int, 'bytes' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "upload.webFile", "size": int, "mime_type": "string", "file_type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

upload_webFile={_='upload.webFile', size=int, mime_type='string', file_type=storage_FileType, mtime=int, bytes='bytes'}