1.2 KiB
1.2 KiB
title | description | image |
---|---|---|
upload.webFile | Web file | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: upload.webFile
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'}