Simple python telegram bot for instant anon posts deletion.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-16 17:46:54 +03:00
bot.py Initial commit 2026-06-16 17:42:26 +03:00
README.md Update README 2026-06-16 17:46:54 +03:00
requirements.txt Initial commit 2026-06-16 17:42:26 +03:00
tg-unsign-delete.service Initial commit 2026-06-16 17:42:26 +03:00

tg-unsign-delete

Telegram bot that deletes any channel post without an author signature. Wrote it because I am tired of some imposters in admins starting to assault others and joke badly.

Setup

python3 -m venv venv
venv/bin/pip install -r requirements.txt
echo "BOT_TOKEN=your_token_here" > .env

The bot must be an admin in the channel with Delete messages permission.

Run with systemd

sudo cp tg-unsign-delete.service /etc/systemd/system/
# edit paths/username in the unit file if needed
sudo systemctl daemon-reload
sudo systemctl enable --now tg-unsign-delete