tdl-next
A fast, resumable Telegram downloader, uploader and exporter, written in Rust. Command-line tool and full-screen TUI.
- cli
- downloader
- file-transfer
- mtproto
- ratatui
- resumable-download
- rust
- tdl
- telegram
- telegram-downloader
- telegram-export
- telegram-uploader
- tui
- uploader
- Stars
- 977
- Forks
- 23
- + today
- +3
- Created
- 6d
Ranking data as of December 1, 2026 (UTC).
Star History
Today, hour by hour
Overview
A fast, resumable Telegram downloader, uploader and exporter, written in Rust. Command-line tool and full-screen TUI. It ranks #312 on GitTiger, gaining +3 stars on December 1, 2026 (UTC).
The project is written in Rust and has 23 forks. It was created 6d ago.
Overview
tdl-next is a Telegram media utility written in Rust, offered both as a command-line program and as a full-screen terminal interface. The description frames it as a downloader, uploader and exporter for Telegram, and the README preview adds that transfers can be resumed and media can be streamed.
Described capabilities
- **Parallel multi-datacentre transfers.** Media connections are opened per Telegram data centre, with adaptive control of rate limits. - **Crash-safe resume.** Progress is tracked at chunk level in a SQLite WAL database, so an interrupted transfer continues without re-fetching blocks that already landed. - **Automation-friendly output.** Besides the interactive TUI (`tdln tui`), the tool supports JSON and JSONL output with fixed exit codes for scripting. - **Authenticated HTTP streaming.** A `dl --serve` mode streams allowlisted media over the loopback address with byte-range seeking, aimed at players such as mpv. - **Chat export**, listed in the summary as one of the three transfer modes alongside download and upload.
Stack and licence
Rust throughout; the project is licensed AGPL-3.0.
Getting started
The supplied evidence does not include build or install instructions beyond the quick-start heading in the README preview, so follow the repository README. Expect to authenticate with Telegram before any transfer, as with any client of that service.
git clone https://github.com/beautifulrem/tdl-next.git
cd tdl-next
# see README for setupFrequently Asked Questions
Can tdl-next continue a download that was interrupted?
Yes, that is the documented behaviour: progress is written at chunk granularity to a SQLite WAL file, so restarting picks up where the previous run stopped instead of pulling finished blocks again.
Is there a scripting interface, or only the terminal UI?
Both exist. The full-screen TUI is for interactive use, while JSON and JSONL output with fixed exit codes are intended for scripts and pipelines.
What licence is tdl-next released under?
AGPL-3.0, according to the repository metadata.