MadelineProtoDocs/old_docs/API_docs_v91/constructors/upload_webFile.md
2019-03-08 13:49:23 +01: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'}