upload.GetFile

class pyrogram.raw.functions.upload.GetFile

Returns content of a whole file or its part.

Details:
  • Layer: 187

  • ID: BE5335BE

Parameters:
  • location (InputFileLocation) – File location

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

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

  • precise (bool, optional) – Disable some checks on limit and offset values, useful for example to stream videos by keyframes

  • cdn_supported (bool, optional) – Whether the current client supports CDN downloads

Returns:

upload.File