Upload.WebFile #

Remote file

Layer 223

upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;

---functions---

upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;

Constructors #

ConstructorDescription
upload.webFileRepresents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers

Methods #

MethodDescription
upload.getWebFileReturns content of a web file, by proxying the request through telegram, see the webfile docs for more info.

Note: the query must be sent to the DC specified in the webfile_dc_id MTProto configuration field.