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

Adding possibility to delete messages after sync #132

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

kopiro
Copy link

@kopiro kopiro commented Apr 30, 2024

As stated, adding delete_messages = 0 | 1 | 2 option to allow messages deletion after sync.

@knadh
Copy link
Owner

knadh commented May 10, 2024

Thanks for the PR @kopiro. I think this is best done with a commandline flag. Of thousands, if not tens of thousands of messages that are fetched and stored in the DB, only a few would typically need to be deleted by hand. And this is a one-off action. So adding that to the permanent configuration isn't ideal.

Something like tg-archive maintain --delete=1,2,3,4,5 would be ideal. A new "maintain" mode like "sync" with a flag to take arbitrary message IDs which are directly deleted from the DB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants