knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
829 stars 121 forks source link

ask to download several channels. #118

Closed joshi0531 closed 9 months ago

joshi0531 commented 10 months ago

i don't know if this works at all, but i tried to enter several chats in the config to download them at once. unfortunately it doesn't do more than index them. i don't know why no files are downloaded. config.txt

tg-archive -v = v1.1.3

OS = Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-88-generic aarch64)

sadpenguinn commented 9 months ago

As I found from source code, there is no possibility to backup several groups or chats. I need it too. Tried to find some scripts which can backup all my chats and show its in some View.

@knadh Do you consider to extend it? We can discuss about this feature here and then get it done. Only one way to get it, not changing current source code, is writing bash scripts which will prepare each site for each group ID using tg-archive. I think this way is quite controversial, so if we can write this feature in original repo by changing source code and using help of contributors, this is a good way to achieve it.

Specifically, I am ready to participate in development if I am sure that my changes will be needed and will be accepted after the review.

knadh commented 9 months ago

Creating different config files for different groups and invoking tg-archive for them separately is the right way to do this (orchestrated manually or using scripting). It would be complicated for tg-archive to have multi-group support as each group may require different config to begin with.