{"id":21559657,"url":"https://github.com/0xetherpunk/telegram-moderator-bot","last_synced_at":"2025-06-10T21:11:27.471Z","repository":{"id":263690701,"uuid":"889538407","full_name":"0xEtherPunk/telegram-moderator-bot","owner":"0xEtherPunk","description":"Telegram chat moderation bot that automatically deletes messages with obscene language.","archived":false,"fork":false,"pushed_at":"2024-11-19T23:02:08.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T04:31:36.505Z","etag":null,"topics":["admin","bot","botpy","chat-moderation","chatbot","moderation","pybot","python","python-3","python3","telegram","telegram-bot","telegrambot"],"latest_commit_sha":null,"homepage":"","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/0xEtherPunk.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":"2024-11-16T15:29:45.000Z","updated_at":"2024-11-19T23:02:11.000Z","dependencies_parsed_at":"2024-11-19T23:37:17.090Z","dependency_job_id":null,"html_url":"https://github.com/0xEtherPunk/telegram-moderator-bot","commit_stats":null,"previous_names":["0xetherpunk/telegram-moderator-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xEtherPunk%2Ftelegram-moderator-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xEtherPunk%2Ftelegram-moderator-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xEtherPunk%2Ftelegram-moderator-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xEtherPunk%2Ftelegram-moderator-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xEtherPunk","download_url":"https://codeload.github.com/0xEtherPunk/telegram-moderator-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xEtherPunk%2Ftelegram-moderator-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259152636,"owners_count":22813219,"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":["admin","bot","botpy","chat-moderation","chatbot","moderation","pybot","python","python-3","python3","telegram","telegram-bot","telegrambot"],"created_at":"2024-11-24T09:08:12.991Z","updated_at":"2025-06-10T21:11:24.110Z","avatar_url":"https://github.com/0xEtherPunk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Moderator Bot\n\n[Русская версия](README.ru.md)\n\n\u003eTelegram chat moderation bot that automatically removes messages containing profanity.\n\n## Features\n\n- **🔍 Monitoring messages for profanity**\n- **🗑️ Automatic removal of messages containing swear words**\n- **⚠️ Sending warnings to violators**\n- **🔄 Support for checking edited messages**\n- **🔡 Detection of masked profanity (transliteration, similar symbols)**\n\n## Installation\n\n##### 1. **Clone the repository**:\n```\ngit clone https://github.com/0xEtherPunk/telegram-moderator-bot.git\ncd telegram-moderator-bot\n```\n\n##### 2. **Install dependencies**:\n```\npip install aiogram transliterate\n```\n\n##### 3. Edit `conf.py`:\n```\nbot_token = \"YOUR_BOT_TOKEN\" # Get from @BotFather\ngroup_id = \"YOUR_GROUP_ID\" # Your group ID\n```\n\n## Launch\n\n```\npython main.py\n```\n\n---\n\n## Configuration\n\n#### Bot Permissions\n- Bot must be a group administrator\n- Delete message permissions required\n\n#### Editing Word Lists\nIn `filters/words.py` you can configure:\n- `bad_words` - list of forbidden words\n- `not_bad_words` - list of exceptions\n- `en_ru_map` - symbol replacement rules\n\n### How it Works\n\n1. Bot monitors all new messages in the group\n2. When profanity is detected:\n   - Deletes the message\n   - Sends a warning to the user\n   - Removes the warning after 5 seconds\n3. The system checks various masking methods:\n   - Transliteration\n   - Similar symbols\n   - Mixed alphabets\n\n\u003e [!important] \n\u003e ### Requirements\n\u003e \n\u003e - Python 3.7+\n\u003e - aiogram\n\u003e - transliterate\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xetherpunk%2Ftelegram-moderator-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xetherpunk%2Ftelegram-moderator-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xetherpunk%2Ftelegram-moderator-bot/lists"}