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

1.2 KiB

title description image
upload.webFile Represents a chunk of an [HTTP webfile](https://core.telegram.org/api/files) downloaded through telegram's secure MTProto servers https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: upload.webFile

Back to constructors index

Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers

Attributes:

Name Type Required Description
size int Yes File size
mime_type string Yes Mime type
file_type storage_FileType Yes File type
mtime int Yes Modified time
bytes bytes Yes Data

Type: upload_WebFile

Example:

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

Or, if you're into Lua:

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