Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DownloadFileParams

Low level interface for downloading files

Hierarchy

  • DownloadFileParams

Index

Properties

dcId: number

The dcId that the file belongs to. Used to borrow a sender from that DC

fileSize?: number

How much to download. The library will download until it reaches this amount.
can be useful for downloading by chunks

workers?: number

Used to determine how many download tasks should be run in parallel. anything above 16 is unstable.

partSizeKb?: number

How much to download in each chunk. The larger the less requests to be made. (max is 512kb).

start?: number

Where to start downloading. useful for chunk downloading.

end?: number

Where to stop downloading. useful for chunk downloading.

progressCallback?: progressCallback

A callback function accepting two parameters: (received bytes, total).

Generated using TypeDoc