Simplest bot for removing join/left notifications in Telegram chats. Built with Python and aiogram, this bot can automatically delete messages about users joining or leaving a group. It also requests admin privileges upon being added to a group to perform message deletion.
- Automatically deletes join/leave messages in groups.
- Requests admin privileges upon being added to a group for message management.
- Error handling for message deletion failures.
- Logging for monitoring and troubleshooting.
- Python 3.9 or newer
- Docker and Docker Compose (for Docker deployment)
- A Dokku server (for Dokku deployment)
- Clone this repository:
git clone https://github.com/IgorDuino/inno-chat-cleaner.git
cd inno-chat-cleaner
- Create a
.env
file in the root directory with your Telegram bot token:
TELEGRAM_API_TOKEN=your_telegram_bot_token
- Build and run the container:
docker-compose up --build
- On your Dokku server, create a new app:
dokku apps:create inno-chat-cleaner
- Set the environment variable for your Telegram bot token:
dokku config:set inno-chat-cleaner TELEGRAM_API_TOKEN=your_telegram_bot_token
- Add the Dokku remote to your local repository:
git remote add dokku [email protected]:inno-chat-cleaner
- Push your app to Dokku:
git push dokku master
Once deployed, the bot will start monitoring for join/leave messages and delete them automatically. It will also request admin privileges upon being added to a group to ensure it has the necessary permissions to manage messages.