upload.GetWebFile

class pyrogram.raw.functions.upload.GetWebFile

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

Details:
  • Layer: 223

  • ID: 24E6818D

Parameters:
  • location (InputWebFileLocation) – The file to download

  • offset (int 32-bit) – Number of bytes to be skipped

  • limit (int 32-bit) – Number of bytes to be returned

Returns:

upload.WebFile

TL Schema

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

= upload.WebFile

Parameter Tree

GetWebFile
├── locationInputWebFileLocation
│ ├── InputWebFileLocation
│ │ ├── urlstring
│ │ └── access_hashlong
│ │ ├── geo_pointInputGeoPoint
│ │ │ ├── InputGeoPointEmpty
│ │ │ └── InputGeoPoint
│ │ │ ├── latdouble
│ │ │ ├── longdouble
│ │ │ └── accuracy_radiusint (optional)
│ │ ├── access_hashlong
│ │ ├── wint
│ │ ├── hint
│ │ ├── zoomint
│ │ └── scaleint
│ ├── smalltrue (optional)
│ ├── documentInputDocument (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ └── file_referencebytes
│ ├── titlestring (optional)
│ └── performerstring (optional)
├── offsetint
└── limitint

Example

await app.invoke(
    GetWebFile(
        location=InputWebFileLocation(
            url="https://google.com",
            access_hash=0
        ),
        offset=0,
        limit=0,
    )
)