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: 227

  • 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
├── location → InputWebFileLocation
│ ├── InputWebFileLocation
│ │ ├── url → string
│ │ └── access_hash → long
│ │ ├── geo_point → InputGeoPoint
│ │ │ ├── InputGeoPointEmpty
│ │ │ └── InputGeoPoint
│ │ │ ├── lat → double
│ │ │ ├── long → double
│ │ │ └── accuracy_radius → int (optional)
│ │ ├── access_hash → long
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── zoom → int
│ │ └── scale → int
│ ├── small → true (optional)
│ ├── document → InputDocument (optional)
│ │ ├── InputDocumentEmpty
│ │ └── InputDocument
│ │ ├── id → long
│ │ ├── access_hash → long
│ │ └── file_reference → bytes
│ ├── title → string (optional)
│ └── performer → string (optional)
├── offset → int
└── limit → int

Example

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