/nsfw-autofilter-telegrambot

NSFW Auto Filter Telegram Bot by Django and Keras

Primary LanguagePython

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.

How to run project

  1. Install Python v3.6
  2. Install virtualenv
pip insatll virtualenv
  1. Create a virtual environment:
virtualenv venv
  1. Active the virtual environment (On Linux):
source venv/bin/activate
  1. Install all the requirements by using this command:
pip install -r requirements.txt
  1. Download the model from here and put it in a folder like models.
  2. Move and rename config.py.sample to ndproject/config.py and do proper changes.
  3. Do migrations:
python manage.py makemigrations
python manage.py migrate
  1. Run project:
python manage.py runserver