tg-notify-deleted-messages allows you to track messages which were deleted or
edited by your interlocutors. You receive notifications when messages are
deleted or edited in monitored chats.
- Go to https://my.telegram.org . Select "API development tools" and create application.
- Copy
.env.examplefile with name.envand change values.
docker-compose up -d appThen, interact with the application using the API described on openapi.yaml.
docker-compose stop appPYTHONPATH=app/src python3 -m pytest tests/test_*.py -vOr with unittest discover:
PYTHONPATH=app/src python3 -m unittest discover -s tests -p "test_*.py" -vSQLite (ephemeral file):
INTEGRATION_DATABASE_URL=sqlite+pysqlite:////tmp/tgdel-integration.sqlite3 \
PYTHONPATH=app/src python3 -m unittest discover -s tests -p "integration_*.py" -vPostgres:
INTEGRATION_DATABASE_URL=postgresql+psycopg://postgres:postgres@127.0.0.1:5432/postgres \
PYTHONPATH=app/src python3 -m unittest discover -s tests -p "integration_*.py" -vtg-notify-deleted-messages stores message history for the time specified
in the MESSAGES_TTL_DAYS environment variable, with default TTL: 14 days.
Preloading can also persist per-dialog checkpoints to avoid rescanning the same
TTL window on every restart. This behavior is enabled by default through
PRELOAD_CHECKPOINTS_ENABLED=1. The checkpoint flush cadence during preload is
controlled by PRELOAD_CHECKPOINT_UPDATE_EVERY_MESSAGES, with default 100.
You can change this interval by changing the .env file or by defining environment
variables at the system level.
Be careful, your messages can fill your disk space!
See ROADMAP.md.
Feel free to create issues, bug reports and pull requests. I will be very grateful if someone implements any of the features described in the roadmap!