#655·tdl

[Feat] download all files from a thread/discussion/comments

Author: papaj-na-wrotkachCreated Jun 19, 2024Updated Aug 6, 2026
Labelsenhancement

Proposal

Does/can TDL support downloading all files from the comments section of a channel message? I tried using urls like https://t.me/c/{channel}/{thread} https://t.me/c/{channel}/?thread={thread} but only the first one worked - it downloaded the file from the message in the channel, not all messages from the comments of that message (from the discussion chat).

Also, please correct me if I am wrong. As I understand it, thread is the term for the message in the channel with all it's replies (visible as comments) in the discussion chat. Thread ID is just the ID of the message that started it (message from the channel forwarded to discussion chat).

Background

I use a (private) channel to post some files - large archives split into 2000 MiB parts (2000 MiB is the file size limit for free accounts). This channel supports comments. I group all parts of an archive by posting them as comments to the message with the name and description of the archive. I want to be able to download all parts with one command.

Workarounds

Export messages with tdl chat export and filter them by name using -f flag (Media.Name contains or sth).

edit: There's also --topic option for tdl chat export. but I am wondering if there's an url format or some other way to do it.