Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
papaj-na-wrotkach opened this issue Jun 19, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@papaj-na-wrotkach
Copy link

papaj-na-wrotkach commented Jun 19, 2024

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.

@papaj-na-wrotkach papaj-na-wrotkach added the enhancement New feature or request label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants