upload.File

Contains info on file.

upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File;

---functions---

upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;

Constructors

Constructor Description
upload.file File content.
upload.fileCdnRedirect The file must be downloaded from a CDN DC.

Methods

Method Description
upload.getFile Returns content of a whole file or its part.