MadelineProtoDocs/docs/API_docs/constructors/upload.webFile.md
2024-05-01 14:53:46 +02:00

1.2 KiB

title description nav_exclude image redirect_from
upload.webFile Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/upload_webFile.html

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'];