{"id":31110586,"url":"https://github.com/waheeb71/tenth_power_bot","last_synced_at":"2025-10-13T19:34:29.079Z","repository":{"id":313042806,"uuid":"1049799323","full_name":"waheeb71/tenth_power_bot","owner":"waheeb71","description":"Smart Telegram Bot for Customer Management and Automated Customer Service","archived":false,"fork":false,"pushed_at":"2025-09-04T15:02:24.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-17T07:48:37.382Z","etag":null,"topics":["bot","python","telegram","telegrambot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waheeb71.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T14:07:56.000Z","updated_at":"2025-09-04T15:02:27.000Z","dependencies_parsed_at":"2025-09-03T16:26:02.960Z","dependency_job_id":"79ad30ab-cc08-402a-bb15-47f08c226bd7","html_url":"https://github.com/waheeb71/tenth_power_bot","commit_stats":null,"previous_names":["waheeb71/tenth_power_bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waheeb71/tenth_power_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waheeb71%2Ftenth_power_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waheeb71%2Ftenth_power_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waheeb71%2Ftenth_power_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waheeb71%2Ftenth_power_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waheeb71","download_url":"https://codeload.github.com/waheeb71/tenth_power_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waheeb71%2Ftenth_power_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016917,"owners_count":26085888,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bot","python","telegram","telegrambot"],"created_at":"2025-09-17T07:48:27.756Z","updated_at":"2025-10-13T19:34:29.043Z","avatar_url":"https://github.com/waheeb71.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Business Assistant Bot\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003ch3\u003eSmart Telegram Bot for Customer Management and Automated Customer Service\u003c/h3\u003e\n  \u003cp\u003ePowered by \u003cstrong\u003eGoogle Gemini\u003c/strong\u003e | Ideal for businesses, contractors, and technical services\u003c/p\u003e\n\n  \u003ca href=\"https://t.me/Ponamohabot\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Telegram-Bot-blue?logo=telegram\" alt=\"Bot Link\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/waheeb71/tenth_power_bot/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/waheeb71/tenth_power_bot/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/waheeb71/tenth_power_bot?style=social\" alt=\"Stars\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## Overview\n\n**Business Assistant Bot** is an integrated Telegram bot designed to help small and medium-sized businesses automatically manage customer communication, combining AI with human interaction.\n\nIt combines:\n- Smart replies via **Google Gemini**\n- Interactive button interface\n- Supervisor message forwarding system with direct reply capability\n- 🌐 **Webhook** support for deployment on Render / Heroku / Railway\n\nIdeal for businesses in:\n- Contracting\n- Maintenance and technical services\n- Administrative services\n- 🔧 Technical support\n\n---\n\n## Key Features\n\n| Feature | Description |\n|-------|-------|\n| 💡 Smart Replies | Uses **Google Gemini 1.5 Flash** for automatic responses in Arabic and English |\n| 📱 Interactive UI | Main buttons for services, contact, and consultations |\n| 📥 Internal Messaging System | Customers can send messages, and supervisors are notified |\n| ✉️ Team Response | Supervisors reply using `/reply_123` command, and the response is automatically delivered to the customer |\n| 🌐 Webhook and Polling Support | Works in local environments and public servers |\n| 🔧 Easy Customization | Easily modify texts, services, and contact numbers |\n| 📦 Lightweight and Fast | Built on `python-telegram-bot` and `Flask` |\n\n---\n\n## Technical Structure\n\n```\nbusiness-assistant-bot/\n├── app.py               # Main application (Flask + PTB)\n├── ai_handler.py        # Google Gemini API integration\n├── handlers.py          # Commands and button handlers\n├── config.py            # General settings\n├── requirements.txt     # Required libraries\n└── README.md            # This file\n```\n\n---\n\n## 🔧 Requirements\n\n- ✅ Python 3.8 or higher\n- ✅ [Google Gemini API Key](https://aistudio.google.com/app/apikey)\n- ✅ [Telegram Bot Token](https://t.me/BotFather)\n- ✅ HTTPS-enabled server (e.g., Render, Heroku, or VPS) — for Webhook activation\n\n---\n\n## How to Run\n\n### 1. Clone the Project\n```bash\ngit clone https://github.com/waheeb71/tenth_power_bot.git\ncd tenth_power_bot\n```\n\n### 2. Install Dependencies\n```bash\npip install -r requirements.txt\n```\n\n### 3. Set Environment Variables\n\nCreate a `.env` file or set variables directly in your environment:\n\n```bash\nexport TELEGRAM_TOKEN=\"123456:ABC-DEF123456\"\nexport GEMINI_API_KEY=\"AIzaSyXXXXXXYourKeyHere\"\nexport WEBHOOK_URL=\"https://yourdomain.onrender.com\"  # Leave empty for local polling\nexport PORT=10000\n```\n\n\u003e ⚠️ Use `https://` only in `WEBHOOK_URL`.\n\n### 4. Run the Bot\n```bash\npython app.py\n```\n\n\u003e If webhook is not enabled, the bot will automatically run in **polling** mode.\n\n---\n\n## 🌐 Deployment on Render / Heroku\n\n1. Push the project to a GitHub repository.\n2. Create an app on [Render](https://render.com) or Heroku.\n3. Connect it to your repository.\n4. Add environment variables in the dashboard.\n5. Launch the app.\n\n✅ Webhook will be set automatically.\n\n---\n\n## How to Customize\n\n1. Open `config.py` and modify:\n   - `COMPANY_NAME`: Your company name\n   - `CONTACT_PHONE`: Contact phone number\n   - `CONTACT_EMAIL`: Company email\n   - `SERVICES`: List of services\n   - `ADMIN_IDS`: Telegram user IDs of supervisors\n\n2. Edit texts in `handlers.py` according to your business needs.\n\n---\n\n## License\n\nThis project is distributed under the [MIT License](LICENSE), meaning you can:\n- Reuse it\n- Modify it\n- Sell it as part of a service\n- Use it commercially\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eBuilt to empower businesses with efficient and intelligent customer service automation.\u003c/p\u003e\n  \u003cp\u003eContribute to its development or share it with your team!\u003c/p\u003e\n  \u003cimg src=\"https://img.icons8.com/ios-filled/50/000000/globe.png\" alt=\"World\" width=\"30\"/\u003e\n\u003c/div\u003e\n\n---\n\n## How Can You Benefit From This Project?\n\n- ✔️ Use it as a **ready-made template** for any business.\n- ✔️ Include it in your portfolio as a **smart customer management system**.\n- ✔️ Sell it as a service to small businesses.\n- ✔️ Add a web dashboard for supervisors to turn it into a full CRM system.\n\n---\n\n## Contact:\nFor questions or support, contact me via:\n- Telegram: [@SyberSc71](https://t.me/SyberSc71)\n- Telegram: [@WAT4F](https://t.me/WAT4F)\n- GitHub: [waheeb71](https://github.com/waheeb71)\n- GitHub2: [cyberlangdev](https://github.com/cyberlangdev)\n- **Location:** I am from Yemen, Taiz.\n- **YouTube Channel:** [Cyber Code](https://www.youtube.com/@cyber_code1)\n- **X (formerly Twitter):** [@wa__cys](https://x.com/wa__cys)\n\n---\n\n## Author / Developer\n\n**English:** Waheeb Mahyoob Al-Sharabi (Waheeb Al-Sharabi)  \n**العربية:** وهيب مهيوب الشرعبي (وهيب الشرعبي)\n\n## اللغة / Language\n\n📖 [اقرأ النسخة العربية](READMEAR.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaheeb71%2Ftenth_power_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaheeb71%2Ftenth_power_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaheeb71%2Ftenth_power_bot/lists"}