Simple python telegram bot for instant anon posts deletion.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bot.py | ||
| README.md | ||
| requirements.txt | ||
| tg-unsign-delete.service | ||
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