An open API service indexing awesome lists of open source software.

https://github.com/zeshuaro/telegram-group-defender

A utility bot for group chats on Telegram
https://github.com/zeshuaro/telegram-group-defender

attachment-scanner azure-content-moderator bot google-cloud-vision google-safebrowsing python-telegram-bot telegram telegram-group-defender

Last synced: about 1 year ago
JSON representation

A utility bot for group chats on Telegram

Awesome Lists containing this project

README

          

# Telegram Group Defender

[![Telegram Bot](https://img.shields.io/badge/Telegram-Bot-blue.svg)](https://t.me/grpdefbot)
[![Telegram Channel](https://img.shields.io/badge/Telegram-Channel-blue.svg)](https://t.me/grpdefbotdev)
[![MIT License](https://img.shields.io/github/license/zeshuaro/telegram-group-defender.svg)](https://github.com/zeshuaro/telegram-group-guardian/blob/master/LICENSE)

[![Build Status](https://travis-ci.com/zeshuaro/telegram-group-defender.svg?branch=master)](https://travis-ci.com/zeshuaro/telegram-group-defender)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/068e749cb48343d08811e20a15af6696)](https://www.codacy.com/app/zeshuaro/telegram-group-defender?utm_source=github.com&utm_medium=referral&utm_content=zeshuaro/telegram-group-defender&utm_campaign=Badge_Grade)

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:

```bash
pip install -r requirements.txt
```

The bot uses [Google Cloud Vision](https://cloud.google.com/vision/) to check for inappropriate content in images, and
[Google Safe Browsing](https://developers.google.com/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:

```bash
TELE_TOKEN="telegram_token"
GOOGLE_TOKEN="google_token"
```

### Running The Bot

You can then start the bot with the following command:

```bash
python bot.py
```