Our sandbox run passed all 491 tests at commit 2b23f98. That makes beautifulrem/tdl-next a candidate for Telegram users who want transfers in a terminal, especially those interested in interactive media selection or structured script output. Keep your current client if chatting is your main task, or keep Go tdl if its commands already do the job. The concrete result here is a checkout that passed the recorded build and tests.
The tdl-next README describes a Rust rewrite of Go tdl with a command called tdln. It lists downloading, uploading, forwarding, exporting and streaming. Its TUI, or full-screen terminal interface, gives users a way to browse media and manage transfers without writing a command for every selection. The review below separates those documented interfaces, the author's benchmark results and our recorded source checks.
What people use tdl-next for
The README describes interactive media selection, scripted transfers and local media streaming through tdln. Those uses share one engine but suit different working habits: choosing individual files in the terminal, feeding transfer results to another program, or opening Telegram media in a local player. The README's feature descriptions identify these interfaces; beautifulremi's Chinese-language V2EX introduction explains the author's reasons for building the rewrite.
Interactive selection is the clearest use for someone who dislikes assembling lists of message links. According to the README, tdln tui browses chat media, watches transfers and switches accounts. Its Chats view lets users select a file and press d to download it. This puts file selection and transfer status in the terminal, while leaving ordinary conversation in the user's chat application. The documented interface has six views, with ? opening its keyboard help.
Scripted transfers use the CLI's JSON or JSONL output and fixed exit codes. JSONL places one JSON object on each line, making a stream of records easier for another program to consume incrementally. Local playback is a separate documented route: tdln dl --serve exposes selected media on 127.0.0.1 with token authentication and byte-range seeking for mpv or VLC. The README describes both automation and streaming, rather than presenting the tool solely as a file downloader.
What happened when we ran it
Our December 2, 2026 run at commit 2b23f98 installed in 11 seconds, built in 269 seconds and passed 491 tests in 269 seconds. We measured these source-check results in a sandbox with 3 CPUs, 12g RAM and image label lab-rust:1. The recorded build and test measurements also report 441 dependencies. The install, build and test steps all succeeded; the separate hands-on runner encountered a different result.
| Sandbox step | Result | Recorded duration |
|---|---|---|
| Install | Succeeded; 441 dependencies recorded | 11 seconds |
| Build | Succeeded | 269 seconds |
| cargo test | 491 passed, 0 failed of 491 | 269 seconds |
The checkout contained 447 files, approximately 121,026 lines of source and occupied 6.1 MB. The scan found three CI workflow files, a Dockerfile and a tests directory. These checkout observations describe the repository and configuration used for our run. They give a more concrete picture of the source check than the language label alone: a Rust checkout, recorded dependencies, a successful build and the complete recorded test count.
The separate hands-on summary says it deployed beautifulrem/tdl-next with Docker Compose on December 2, 2026, with every port bound to 127.0.0.1. However, the detailed safety step failed with: unsafe repo: none of compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml exists (rule: a compose file is required). That explicit failure takes precedence over the summary's deployment wording. The subsequent teardown record says teardown: ok.
The word unsafe comes from the runner's Compose acceptance rule. The repository has a Dockerfile, and its README gives a docker run example ending in doctor. Those facts explain the mismatch: the runner required one packaging format, while the documented container route uses another. The failed step is therefore a finding about the attempted setup route, rather than evidence that the application itself has a security defect.
Where people get stuck: setup and migration
The executable is tdln, while the repository and npm package are named tdl-next. The README's installation section offers macOS and Linux installers, a Windows PowerShell installer, npm installation, Cargo installation and Docker. Cargo requires Rust 1.96 or newer. Readers arriving from Go tdl should pay particular attention to the executable name and account-state paths, because a familiar command shape does not mean a shared installation.
| Point of confusion | Documented route | Basis |
|---|---|---|
| The hands-on runner requires Compose | The README supplies installers and a Docker command | The safety log names the missing Compose files |
| AIJP describes a Python application | Upstream identifies a Rust rewrite and its installation routes | The README names tdln and Cargo |
| Go tdl is already installed | tdln uses separate paths and variables | The migration section names both sets |
| A script needs structured output | The CLI advertises JSON, JSONL and fixed exit codes | The README lists these interfaces |
The migration section says tdln leaves ~/.tdl, TDL_* variables and _tdl completions alone. Its own state lives in ~/.tdl-next under TDLN_*. The README directs users to Telegram Desktop import, QR-code or login-code authentication, and names tdln backup and tdln recover for moving accounts between machines. That separation gives an existing Go tdl user a concrete way to compare installations without treating their state directories as interchangeable.
For a first documented task, the README pairs login with a message or album download, then shows chat export and filtered downloads. It also names tdln doctor for connectivity and storage checks and -n <namespace> for keeping multiple accounts apart. These commands provide a sensible reading order: understand authentication and storage first, then choose an interactive selection or an export-based batch. The command examples are upstream instructions, not additional steps from our source run.
Credential storage depends on the selected backend
The security documentation lists macOS Keychain, Windows Credential Manager and Linux Secret Service as OS keychain backends. Its selection rule prefers a reachable, functioning keychain and automatically uses an encrypted vault on headless systems or containers without one. The security design also names TDLN_DISABLE_KEYRING=1 as a way to select the vault. Linux storage therefore has an explicit documented path beyond the Mac and Windows examples in the launch discussion.
The document says session snapshots strip authentication keys and tokens before writing metadata to SQLite. Secrets go into SecretStore, using the selected backend. For the encrypted vault, the cipher is authenticated ChaCha20-Poly1305. Key derivation uses Argon2id when TDLN_VAULT_PASSPHRASE is set, or HKDF-SHA256 from a local vault.key file otherwise. These are specific storage choices an operator can account for when deciding how the account directory will be protected and backed up.
The same document specifies directories with mode 0700 and secret files with mode 0600. It says symlinks and group- or world-accessible secret files are rejected before input or output. The passphrase and local-key routes give the operator different material to retain: a separately supplied passphrase in one case, or a local key file in the other. A backup procedure needs to account for whichever route the installation uses, rather than treating the SQLite database as the entire account store.
The speed table measures a loopback workload
The benchmark documentation describes tests executed entirely offline against local loopback mocks. Its representative comparison uses an Apple M4 with 24 GiB RAM and archived Go tdl at 77cb441be6. The benchmark methodology describes fresh subprocesses, isolated temporary directories and a correctness check before timing. Loopback traffic stays on the benchmark machine, so the workload measures the implementation under controlled local conditions.
For the 50 × 64 KiB small-file batch, the author reports 309.5 ms for tdln and 5,057.7 ms for legacy Go tdl. Peak memory is listed as 13.9 MiB and 23.7 MiB respectively. Those numbers appear in the author's V2EX table and the current benchmark documentation. The latter makes the comparison target explicit, giving the precise archived Go revision behind the label rather than implying a comparison with every release of the original tool.
The reproduction route builds release binaries, runs tdl-bench --sanity, then invokes the benchmark script to write JSON and Markdown reports. The documented sanity check covers SHA-256 digests, HTTP byte-range responses, SQLite WAL persistence and other implementation checks. For a reader evaluating architecture, that procedure is more useful than a speed adjective: it names the workload, the comparison target, the timing process and the correctness conditions attached to the reported results.
English documentation and the correct project name
The repository has an English README and English engineering documentation, with Simplified Chinese versions linked alongside them. The README's documentation index includes installation, migration, CLI, TUI, security, benchmarks and testing. Beautifulremi's V2EX launch discussion is in Chinese, but the repository gives English-speaking readers direct access to the setup and engineering explanations used in this review. The language of the launch discussion does not describe the language coverage of the documentation.
The name also appears in an unrelated product description. A Tangled post about TDL NEXT calls it a community-powered advertising network for independent marketers and links to The Downliner. For the Telegram utility, use the full repository identity, beautifulrem/tdl-next, when searching or asking for help. That distinguishes the Rust transfer tool from advertising campaigns, promotional points and other services using the same words.
tdl-next vs Go tdl and Telegram Desktop
Go tdl is the closest documented alternative for an existing transfer script, while Telegram Desktop is the official desktop messenger. The Go tdl README lists protected-chat downloads, uploads, forwarding and JSON export. The Telegram Desktop repository identifies its application as the official desktop client. These descriptions support a workflow comparison: a dedicated transfer command, a separate terminal interface, or a complete desktop chat application.
| Option | Documented role | Pick it when |
|---|---|---|
| tdl-next | Rust transfer tool with a TUI, JSON/JSONL output and local streaming | You want terminal media selection or structured transfer output |
| iyear/tdl | CLI downloads, uploads, forwarding and JSON export | Your existing Go tdl workflow already meets your needs |
| Telegram Desktop | Official Telegram desktop messenger | Conversation is the main task and you want a desktop chat application |
| A complete third-party Telegram client | The author's launch post contrasts this category with a dedicated downloader | You want conversation and downloading in one application |
The author argues for separating downloads from chatting in the V2EX introduction. That is a specific product preference, and the TUI follows it. For an existing Go tdl user, the useful migration question is which documented interface changes the job: selecting media interactively, consuming structured output or using the separate account-storage design. Broad support for downloads and exports appears in both projects' descriptions, so those capabilities alone do not explain a switch.
What the other reviews get wrong
AIJP describes tdl-next as written in Python using Telethon, while upstream identifies a Rust rewrite. The AIJP article states its Python claim explicitly; the project README instead names Rust, the tdln executable and a Cargo installation route. This correction changes the setup instructions a reader should follow. The evidence identifies the conflicting descriptions without establishing a publication date for the AIJP article.
AIJP also gives a Python requirements-file installation command as a typical setup step. The upstream README instead documents platform installers, npm, Cargo and Docker. Its description of a basic authentication, retrieval and local-storage pipeline also leaves out advertised interfaces: upstream lists a full-screen TUI, local media streaming and JSON/JSONL output. The correction is to use this repository's installation instructions and full documented scope when evaluating beautifulrem/tdl-next.
FAQ
The author says tdl-next can download media from groups that disable forwarding and downloading. That claim appears in the V2EX introduction, alongside questions about official-client speed, interrupted downloads and credential storage. The answers below identify the relevant documented mechanisms and comparison targets. Together, they address the four questions raised in that launch discussion without turning the author's descriptions into additional lab observations.
Can tdl-next download media from Telegram groups that disable forwarding and downloading?
Beautifulremi advertises downloads despite forwarding and downloading restrictions. The V2EX introduction makes that broad claim and describes TUI selection of channel and group files. The README separately lists downloads, filtering and exports among the tool's interfaces. This is the author's advertised capability; the scope of the live compatibility work needed to assess it is collected in the final section.
Is tdl-next faster than Telegram's official client?
The published benchmark compares tdln with archived Go tdl at 77cb441be6. Its documented method uses offline loopback mocks on an Apple M4 with 24 GiB RAM. Telegram Desktop is the official messenger in the alternatives table, while legacy Go tdl is the benchmark target. Keeping those names distinct prevents the reported 309.5 ms small-file result from being assigned to a comparison the table never made.
Can tdl-next reliably resume interrupted downloads?
The README describes chunk-level progress stored in SQLite WAL, with interrupted downloads fetching only chunks that were never written. WAL means write-ahead log, the database mechanism named in that recovery design. The README's recovery description and the author's launch explanation both connect persisted chunk progress to restart behavior. That is a concrete mechanism for readers evaluating the tool's approach to long transfers and process interruptions.
How does tdl-next protect Telegram account credentials compared with JSON or KV storage?
The documented design removes authentication secrets from SQLite metadata and stores them in an OS keychain or encrypted vault. The security documentation specifies backend selection, ChaCha20-Poly1305 encryption and passphrase or local-key derivation. JSON and key-value storage are formats, so the useful comparison is how secrets are protected, where their unlocking material lives and which files an operator must retain or restrict.
What we have not tested yet
Our completed source run covers installation, building and 491 tests at 2b23f98; it does not establish a completed Telegram workflow. We did not sign into Telegram, download a real batch, interrupt and resume a live transfer, measure live transfer memory, or exercise playback, TUI selection, JSON/JSONL consumers and account migration. The missing-Compose failure left the separate hands-on attempt without a demonstrated deployment or download. Its records contain no screenshots or known-answer task results.
The author's offline benchmark procedure has not been reproduced in our lab. A live speed comparison with Telegram Desktop would need matching account, network and media conditions, and the archived Go revision cannot stand for every current Go tdl release. Restricted-download compatibility needs observations across specific chat types, message types and permissions, including failures. The broad download claim and encrypted credential storage also provide no evidence of ban-free operation or Telegram account-enforcement outcomes.
The Linux credential backend has documentation, but our run did not inspect a selected backend on a running installation, audit its encryption or restore an account backup. The sandbox image label does not identify the actual compiler or operating-system version. Rendered layout, resolved links and site recommendation elements also fall outside this text review. A useful next run would record the actual toolchain and backend, complete a permitted download, then interrupt and restart it before comparing file integrity.


