iyear / tdl

📥 A Telegram tookit written in Golang
https://docs.iyear.me/tdl
GNU Affero General Public License v3.0
3.67k stars 380 forks source link

[Feat] Realtime backup. (daemon mode) #510

Open shamefulCake1 opened 4 months ago

shamefulCake1 commented 4 months ago

Proposal

I would like to backup channel/chat messages as soon as they arrive.

I would be nice to just run something like tdl dl chatname --daemon --no-deletes, and have the messages+multimedia dumped into a directory.

How laborious would be doing that?

Background

At the moment I am running a backup once a day, but this is a big waste of resources, and not in-time. Also, custom scripting is usually fragile.

Workarounds

Well, doing dl chat export every 5 minutes, computing a diff between old.json, and new.json, and somehow finding a range of messages to backup.

Laborius, error-prone, and not instantaneous.

bolavefasfas commented 2 months ago

+1

For real time backups to a dump channel