Versions in this module Expand all Collapse all v0 v0.0.2 Mar 31, 2023 Changes in this version + const TempExt + var ErrSkip = errors.New("skip") + type Downloader struct + func New(opts *Options) *Downloader + func (d *Downloader) Download(ctx context.Context, limit int) error + type Item struct + DC int + ID int + InputFileLoc tg.InputFileLocationClass + Name string + Size int64 + type Iter interface + Finish func(ctx context.Context, id int) error + Next func(ctx context.Context) (*Item, error) + Total func(ctx context.Context) int + type Options struct + Dir string + Iter Iter + PartSize int + Pool dcpool.Pool + RewriteExt bool + SkipSame bool + Threads int