NSFW Auto Filter Telegram Bot by Django and Keras
I've used the a pretraiend model for detecting nsfw contents that is avaiable in NudeNet repository. You should start this robot and add it to each group you want (you have to set the bot as admin) and when somebody sends nsfw contents, this bot removes that automatically. By the way this bot has more options like filtering links, stickers, documents, etc.
- Install Python v3.6
- Install virtualenv
pip insatll virtualenv
- Create a virtual environment:
virtualenv venv
- Active the virtual environment (On Linux):
source venv/bin/activate
- Install all the requirements by using this command:
pip install -r requirements.txt
- Download the model from here and put it in a folder like
models
. - Move and rename
config.py.sample
tondproject/config.py
and do proper changes. - Do migrations:
python manage.py makemigrations
python manage.py migrate
- Run project:
python manage.py runserver