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

Is there any support for Normal chats? #85

Closed sabrysm closed 1 year ago

sabrysm commented 1 year ago

I was wondering if tg-archive has a support for backing up normal chats between two persons

knadh commented 1 year ago

I haven't tested this, but if you can get the conversation's "channel ID", it might just work.

sabrysm commented 1 year ago

I haven't tested this, but if you can get the conversation's "channel ID", it might just work.

Yep it worked by passing the name of the friend. btw is it normal that template.html looks like this before I run tg-archive --build ?

knadh commented 1 year ago

Yes, that's the Jinja template file. Once you run --build, the actual site is created in the site directory.

sabrysm commented 1 year ago

ok so when I do tg-archive --sync does it look for changes only and then updates it? or it re-render the whole chat again? Not sure how it works

knadh commented 1 year ago

--sync pulls new updates and stores it in the local database. --build regenerates the static site from scratch including all new changes.

sabrysm commented 1 year ago

Thanks

sabrysm commented 1 year ago

Sorry I still have some Questions: 1) Does the application tg-archive output lookup things dynamically?
2) How does it handle Messages with comments? Does it download the comments?

knadh commented 1 year ago

1) Unsure what you mean by this.

2) Replies are linked to the parent.

Check out this site: https://tg.fossunited.org