GetFile

class pyrogram.raw.functions.upload.GetFile

Returns content of a whole file or its part.

Details
  • Layer: 126

  • ID: 0xb15a9afc

Parameters
  • location (InputFileLocation) – File location.

  • offset (int 32-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 – Contains info on file.