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

859 B

title description nav_exclude image redirect_from
upload.file File content. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/upload_file.html

Constructor: upload.file

Back to constructors index

File content.

Attributes:

Name Type Required Description
type storage.FileType Yes File type
mtime int Yes Modification time
bytes bytes Yes Binary data, file content

Type: upload.File

Example:

$upload_file = ['_' => 'upload.file', 'type' => storage.FileType, 'mtime' => int, 'bytes' => 'bytes'];