{"id":31045650,"url":"https://github.com/yonatankinfe/telegram-bot","last_synced_at":"2026-02-14T11:36:06.040Z","repository":{"id":294158536,"uuid":"985898923","full_name":"Yonatankinfe/Telegram-bot","owner":"Yonatankinfe","description":"Enterprise-grade Telegram bot system for challenge management, sales automation, and mass communication. Built with battle-tested Node.js stack.","archived":false,"fork":false,"pushed_at":"2025-05-25T16:22:25.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T17:18:06.691Z","etag":null,"topics":["admin","admin-panel","bot","challenge","nodejs","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yonatankinfe.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-05-18T18:45:29.000Z","updated_at":"2025-05-25T16:22:28.000Z","dependencies_parsed_at":"2025-05-19T06:45:49.275Z","dependency_job_id":null,"html_url":"https://github.com/Yonatankinfe/Telegram-bot","commit_stats":null,"previous_names":["yonatankinfe/telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yonatankinfe/Telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yonatankinfe%2FTelegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yonatankinfe%2FTelegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yonatankinfe%2FTelegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yonatankinfe%2FTelegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yonatankinfe","download_url":"https://codeload.github.com/Yonatankinfe/Telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yonatankinfe%2FTelegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","admin-panel","bot","challenge","nodejs","telegram-bot","telegram-bot-api"],"created_at":"2025-09-14T17:12:13.054Z","updated_at":"2026-02-14T11:36:06.036Z","avatar_url":"https://github.com/Yonatankinfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Admin \u0026 User Bot Suite \n\n![Node.js](https://img.shields.io/badge/Node.js-18%2B-green) \n![License](https://img.shields.io/badge/License-MIT-blue) \n![Dependencies](https://img.shields.io/badge/dependencies-telegraf%20|%20mongodb%20|%20mongoose-orange)\n\nEnterprise-grade Telegram bot system for challenge management, sales automation, and mass communication. Built with battle-tested Node.js stack.\n\n---\n\n## 🚀 Key Features\n+ 🕒 Time-bound competitions with configurable durations\n\n+ 🔗 Unique participant links (UUIDv4 + HMAC validation)\n\n+ 🏆 Real-time leaderboard with Redis caching\n\n+ 📊 Advanced analytics dashboard\n### ⚡ Admin Bot Core\n\n#### Challenge Management\n- Time-bound competitions with auto-winner selection\n- Custom participation links generation (UUIDv4)\n- Real-time leaderboard tracking\n\n#### Broadcast System\n- Multi-format messaging (text/image/video/documents)\n- Scheduled campaigns with send-rate controls\n- User segmentation by engagement level\n## 👤 User Bot Core\n### Sales Automation\n+ 🛒 Interactive product carousels\n\n+ 🔄 Order status tracking with webhooks\n\n+ 💬 Live chat handoff to human agents\n\n+ 📦 Inventory sync with external APIs\n\n### Data Management\n+ 🛡️ GDPR-compliant PII handling\n\n+ 📆 Challenge participation history\n\n+ 📊 Interaction analytics pipeline\n\n+ 🔄 Data export/portability tools\n\n## 🛠 Tech Stack\n+ Runtime: Node.js 18+\n\n+ Framework: Telegraf (Telegram Bot API)\n\n+ Database: MongoDB Atlas (NoSQL)\n\n+ ORM: Mongoose ODM\n\n+ Security: Bcrypt hashing + Encryption-at-rest\n\n## 📦 Installation\n\n1. **Clone Repository**\n```bash\n   git clone https://github.com/yourusername/telegram-bot-suite.git\n   cd telegram-bot-suite\n ```\n## 🌟 Roadmap\n+ Multi-admin role system\n\n+ SMS verification layer\n\n+ Premium challenge tiers\n\n+ AI-powered spam detection\n\n+ Revenue dashboard (Stripe integration)\n\n\n### Development Setup\n+ Fork repository and create feature branch\n+ Include Jest tests for all new features\n\n+ Maintain 90%+ test coverage\n\n+ Update documentation accordingly\n\n+ Submit PR with detailed changelog\n  \n```bash\ngit clone https://github.com/Yonatankinfe/Telegram-bot.git\ncd telegram-bot-suite\nnpm install\nnpm run dev\n```\n# Testing\n🧪 This project uses Jest for comprehensive unit testing. We heavily rely on mocking to test logic in isolation from external services and files, making tests fast and reliable.\nMocks include:\n+ 🤖 Telegram Bot API (node-telegram-bot-api): Simulate bot interactions.\n+ 💾 File System (fs, path): Read/write virtual files.\n+ 🌐 HTTP Requests (axios): Mock external API calls like media downloads.\n+ 📊 CSV Handling (csv-parser, json2csv): Control data parsing and generation.\n\nTests cover key flows like:\n+ 👋 Admin /start \u0026 Menu Actions\n+ 📢 Sending Mass Messages (Text \u0026 Media)\n+ 🏆 Challenge Setup \u0026 Data Saving\n+ ✨ Winner Picking Logic (Data Filtering \u0026 Selection)\n+ ✅ Input Validations\n\nTo run the tests:\n```bash\nnpm test\n```\nPlease ensure your contributions include tests and pass the suite!\n```bash\nnpm run lint    # Code style check\nnpm run audit   # Security audit\n```\n## 🤝 Contribution Guidelines\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonatankinfe%2Ftelegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonatankinfe%2Ftelegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonatankinfe%2Ftelegram-bot/lists"}