Skip to content

zeshuaro/telegram-group-defender

Repository files navigation

Telegram Group Defender

Telegram Bot Telegram Channel MIT License

Build Status Codacy Badge

A utility bot for group chats on Telegram that can:

  • Filter files and links that may contain virus or malwares The current API the bot uses service is no longer available
  • Filter photos and links of photos that are NSFW

Getting Started

Prerequisites

Run the following command to install the required packages:

pip install -r requirements.txt

The bot uses Google Cloud Vision to check for inappropriate content in images, and Google Safe Browsing to check for threats in links..

Setup Your Environment Variables

Make a .env file and put your telegram token in there. Below is an example:

TELE_TOKEN="telegram_token"
GOOGLE_TOKEN="google_token"

Running The Bot

You can then start the bot with the following command:

python bot.py