tdl download

tdl download #

Download anything from Telegram (protected) chat

tdl download [flags]

Options #

      --continue          continue the last download directly
      --desc              download files from the newest to the oldest ones (may affect resume download)
  -d, --dir string        specify the download directory. If the directory does not exist, it will be created automatically (default "downloads")
  -e, --exclude strings   exclude the specified file extensions, and only judge by file name, not file MIME. Example: -e png,jpg
  -f, --file strings      official client exported files
  -h, --help              help for download
  -i, --include strings   include the specified file extensions, and only judge by file name, not file MIME. Example: -i mp4,mp3
      --port int          http server port (default 8080)
      --restart           restart the last download directly
      --rewrite-ext       rewrite file extension according to file header MIME
      --serve             serve the media files as a http server instead of downloading them with built-in downloader
      --skip-same         skip files with the same name(without extension) and size
      --takeout           takeout sessions let you export data from your account with lower flood wait limits.
      --template string   download file name template (default "{{ .DialogID }}_{{ .MessageID }}_{{ replace .FileName `/` `_` `\\` `_` `:` `_` `*` `_` `?` `_` `<` `_` `>` `_` `|` `_` ` ` `_`  }}")
  -u, --url strings       telegram message links

Options inherited from parent commands #

      --debug                        enable debug mode
      --delay duration               delay between each task, zero means no delay
  -l, --limit int                    max number of concurrent tasks (default 2)
  -n, --ns string                    namespace for Telegram session (default "default")
      --ntp string                   ntp server host, if not set, use system time
      --pool int                     specify the size of the DC pool, zero means infinity (default 8)
      --proxy string                 proxy address, format: protocol://username:password@host:port
      --reconnect-timeout duration   Telegram client reconnection backoff timeout, infinite if set to 0 (default 5m0s)
  -s, --size int                     part size for transfer, max is 512*1024 (default 524288)
      --storage stringToString       storage options, format: type=driver,key1=value1,key2=value2. Available drivers: [legacy,bolt,file] (default [type=bolt,path=/home/runner/.tdl/data])
      --test string                  use test Telegram client, only for developer
  -t, --threads int                  max threads for transfer one item (default 4)

SEE ALSO #

  • tdl - Telegram Downloader, but more than a downloader