telegram-censor-bot
telegram-censor-bot is a Telegram bot that filters out unwanted words and phrases in group chats. It helps to maintain a clean and respectful environment for communication.
Features
- Automatically detects and blocks messages containing banned words.
- Kicks users who post inappropriate content.
- Deletes offending messages to keep the chat clean.
Usage
- Add telegram-censor-bot in your Telegram group.
- Configure the bot to have necessary permissions to delete messages and kick users.
- Provide a list of banned words and phrases in a text file.
- Start the telegram-censor-bot application.
- telegram-censor-bot will monitor the group chat and take actions based on the content of the messages.
Installation
- Clone the telegram-censor-bot repository:
git clone https://notabug.org/alimiracle/telegram-censor-bot
- Install the required dependencies:
go get
- Set the environment variables:
TELEGRAM_BOT_TOKEN
: Your Telegram bot token.
BANNED_WORDS_FILE
: The path to the text file containing the list of banned words.
- Build and run the telegram-censor-botapplication:
bash
go build
./telegram-censor-bot
Configuration
Before running the bot, make sure to configure it properly:
- Create a new Telegram bot and obtain the bot token from BotFather.
- Set the necessary permissions for the bot in your group chat (delete messages, ban users).
- Prepare a text file containing the list of banned words and phrases, with each entry on a new line.
License
This project is licensed under the GPL v3 License.