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. Note: the query must be sent to the DC specified in the webfile_dc_id MTProto configuration field.

Details:
  • Layer: 211

  • 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