upload.WebFile
- class pyrogram.raw.types.upload.WebFile
Represents a chunk of an HTTP webfile downloaded through telegram’s secure MTProto servers
Constructor of
WebFile.- Details:
Layer:
223ID:
21E753BC
- Parameters:
size (
int32-bit) – File sizemime_type (
str) – Mime typefile_type (
storage.FileType) – File typemtime (
int32-bit) – Modified timebytes (
bytes) – Data
- Functions:
This object can be returned by 1 function.
Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.
TL Schema
upload.webFile#21e753bc
size:int
mime_type:string
file_type:storage.FileType
mtime:int
bytes:bytes
= upload.WebFile
Parameter Tree
WebFile
├── size →
int├── mime_type →
string├── file_type →
storage.FileType│ ├──
storage.FileUnknown│ ├──
storage.FilePartial│ ├──
storage.FileJpeg│ ├──
storage.FileGif│ ├──
storage.FilePng│ ├──
storage.FilePdf│ ├──
storage.FileMp3│ ├──
storage.FileMov│ ├──
storage.FileMp4│ └──
storage.FileWebp├── mtime →
int└── bytes →
bytesExample
WebFile(
size=0,
mime_type="text",
file_type=FileUnknown(),
mtime=0,
bytes=b"data",
)