{"id":17859275,"url":"https://github.com/zeshuaro/telegram-group-defender","last_synced_at":"2025-04-02T19:43:26.328Z","repository":{"id":103426683,"uuid":"98768301","full_name":"zeshuaro/telegram-group-defender","owner":"zeshuaro","description":"A utility bot for group chats on Telegram","archived":false,"fork":false,"pushed_at":"2020-07-01T02:35:18.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T10:27:14.085Z","etag":null,"topics":["attachment-scanner","azure-content-moderator","bot","google-cloud-vision","google-safebrowsing","python-telegram-bot","telegram","telegram-group-defender"],"latest_commit_sha":null,"homepage":"https://t.me/grpdefbot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeshuaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-30T01:40:45.000Z","updated_at":"2020-07-01T02:35:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7587054-4ca9-4439-bc2d-8a4a1016ec90","html_url":"https://github.com/zeshuaro/telegram-group-defender","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeshuaro%2Ftelegram-group-defender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeshuaro%2Ftelegram-group-defender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeshuaro%2Ftelegram-group-defender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeshuaro%2Ftelegram-group-defender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeshuaro","download_url":"https://codeload.github.com/zeshuaro/telegram-group-defender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246883648,"owners_count":20849522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attachment-scanner","azure-content-moderator","bot","google-cloud-vision","google-safebrowsing","python-telegram-bot","telegram","telegram-group-defender"],"created_at":"2024-10-28T06:42:09.557Z","updated_at":"2025-04-02T19:43:26.303Z","avatar_url":"https://github.com/zeshuaro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Group Defender\n\n[![Telegram Bot](https://img.shields.io/badge/Telegram-Bot-blue.svg)](https://t.me/grpdefbot)\n[![Telegram Channel](https://img.shields.io/badge/Telegram-Channel-blue.svg)](https://t.me/grpdefbotdev)\n[![MIT License](https://img.shields.io/github/license/zeshuaro/telegram-group-defender.svg)](https://github.com/zeshuaro/telegram-group-guardian/blob/master/LICENSE)\n\n[![Build Status](https://travis-ci.com/zeshuaro/telegram-group-defender.svg?branch=master)](https://travis-ci.com/zeshuaro/telegram-group-defender)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/068e749cb48343d08811e20a15af6696)](https://www.codacy.com/app/zeshuaro/telegram-group-defender?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=zeshuaro/telegram-group-defender\u0026amp;utm_campaign=Badge_Grade)\n\nA utility bot for group chats on Telegram that can:\n\n* ~~Filter files and links that may contain virus or malwares~~ *The current API the bot uses service is no longer available*\n* Filter photos and links of photos that are NSFW\n\n## Getting Started\n\n### Prerequisites\n\nRun the following command to install the required packages:\n\n```bash\npip install -r requirements.txt\n```\n\nThe bot uses [Google Cloud Vision](https://cloud.google.com/vision/) to check for inappropriate content in images, and\n[Google Safe Browsing](https://developers.google.com/safe-browsing/) to check for threats in links..\n\n### Setup Your Environment Variables\n\nMake a .env file and put your telegram token in there. Below is an example:\n\n```bash\nTELE_TOKEN=\"telegram_token\"\nGOOGLE_TOKEN=\"google_token\"\n```\n\n### Running The Bot\n\nYou can then start the bot with the following command:\n\n```bash\npython bot.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeshuaro%2Ftelegram-group-defender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeshuaro%2Ftelegram-group-defender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeshuaro%2Ftelegram-group-defender/lists"}