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
- Host: GitHub
- URL: https://github.com/zeshuaro/telegram-group-defender
- Owner: zeshuaro
- License: mit
- Created: 2017-07-30T01:40:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T02:35:18.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T10:27:14.085Z (over 1 year ago)
- Topics: attachment-scanner, azure-content-moderator, bot, google-cloud-vision, google-safebrowsing, python-telegram-bot, telegram, telegram-group-defender
- Language: Python
- Homepage: https://t.me/grpdefbot
- Size: 108 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Group Defender
[](https://t.me/grpdefbot)
[](https://t.me/grpdefbotdev)
[](https://github.com/zeshuaro/telegram-group-guardian/blob/master/LICENSE)
[](https://travis-ci.com/zeshuaro/telegram-group-defender)
[](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
```