{"id":27004245,"url":"https://github.com/cyberscoper/telegram-group-restriction-bot","last_synced_at":"2025-04-04T06:15:41.238Z","repository":{"id":261111366,"uuid":"883303781","full_name":"CyberScoper/telegram-group-restriction-bot","owner":"CyberScoper","description":"⚙️ A Telegram bot that automates new member management in group chats by restricting their message-sending capabilities for a defined period and sending a welcome message when the restriction ends. This tool is designed to improve chat security and streamline group moderation.","archived":false,"fork":false,"pushed_at":"2025-03-26T13:34:17.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:42:22.620Z","etag":null,"topics":["python3","telegram-bot"],"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/CyberScoper.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-04T18:20:36.000Z","updated_at":"2025-03-26T13:34:21.000Z","dependencies_parsed_at":"2024-11-04T19:30:49.311Z","dependency_job_id":"6054a87d-1cb9-4dbc-a738-2006c421687a","html_url":"https://github.com/CyberScoper/telegram-group-restriction-bot","commit_stats":null,"previous_names":["cyberscopetoday/telegram-group-restriction-bot","cyberscoper/telegram-group-restriction-bot"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberScoper%2Ftelegram-group-restriction-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberScoper%2Ftelegram-group-restriction-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberScoper%2Ftelegram-group-restriction-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyberScoper%2Ftelegram-group-restriction-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyberScoper","download_url":"https://codeload.github.com/CyberScoper/telegram-group-restriction-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128750,"owners_count":20888235,"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":["python3","telegram-bot"],"created_at":"2025-04-04T06:15:40.657Z","updated_at":"2025-04-04T06:15:41.226Z","avatar_url":"https://github.com/CyberScoper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🤖 Telegram Bot for User Restriction and Welcome Messaging\n\nThis project is a Telegram bot designed to enhance group management by monitoring new members, applying temporary restrictions, and sending welcome messages after the restriction period.\n\n## ✨ Features\n\n- 🕵️ **New Member Detection**: Automatically detects when new members join the group.\n- ⏳ **Temporary Restriction**: Restricts new members from sending messages for 12 hours after a waiting period of 7 minutes.\n- 👋 **Welcome Message**: Sends a personalized welcome message mentioning the user after the 12-hour restriction period ends, provided the user is still in the group.\n- 📝 **Logging**: Includes detailed logging for monitoring bot actions and debugging.\n\n## 🛠 Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/CyberScoper/telegram-group-restriction-bot.git\n   cd telegram-group-restriction-bot\n   ```\n\n2. **Set up Python environment**:\n   Ensure you have Python 3.7+ installed.\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   pip install -r requirements.txt\n   ```\n\n3. **Add your Telegram bot token**:\n   Replace the placeholder token in `main.py`:\n   ```python\n   application = ApplicationBuilder().token(\"YOUR_TELEGRAM_BOT_TOKEN\").build()\n   ```\n\n4. **Run the bot**:\n   ```bash\n   python main.py\n   ```\n\n## 🚀 Usage\n\n- **Start Command**: `/start` – Initializes the bot and confirms it is running.\n- **New Member Handling**: The bot automatically tracks new members and starts the restriction process.\n\n## ⚙️ Configuration\n\n- **Delay and Restriction Time**: The waiting time before restriction is 7 minutes, and the restriction duration is 12 hours.\n- **Welcome Message Customization**: The message text can be modified in the `schedule_welcome_message` function.\n\n## 🛡 Logging and Debugging\n\nLogs are set up to provide detailed output. You can change the logging level by adjusting:\n```python\nlogging.basicConfig(level=logging.INFO)  # Use DEBUG for more detailed logs\n```\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/yourusername/telegram-restriction-bot/issues).\n\n## 📄 License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberscoper%2Ftelegram-group-restriction-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberscoper%2Ftelegram-group-restriction-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberscoper%2Ftelegram-group-restriction-bot/lists"}