{"id":26862104,"url":"https://github.com/chuprinadaria/telegrambot-orderstripe","last_synced_at":"2026-04-14T03:32:15.642Z","repository":{"id":285234353,"uuid":"957469334","full_name":"ChuprinaDaria/TelegramBot-OrderStripe","owner":"ChuprinaDaria","description":"Telegram Subscription Bot with Stripe This Telegram bot allows users to register, select subscription plans, and complete payments securely using Stripe. It features an easy-to-use interface with predefined tariffs and automated payment processing. ","archived":false,"fork":false,"pushed_at":"2025-03-30T13:13:17.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T02:10:38.779Z","etag":null,"topics":["docker","order-management","payments","python","sqlite","stripe-api","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://t.me/Channel_orders_bot","language":"Python","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/ChuprinaDaria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-03-30T13:03:56.000Z","updated_at":"2025-04-26T04:29:37.000Z","dependencies_parsed_at":"2025-03-30T14:22:01.902Z","dependency_job_id":null,"html_url":"https://github.com/ChuprinaDaria/TelegramBot-OrderStripe","commit_stats":null,"previous_names":["chuprinadaria/telegrambot-orderstripe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChuprinaDaria/TelegramBot-OrderStripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuprinaDaria%2FTelegramBot-OrderStripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuprinaDaria%2FTelegramBot-OrderStripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuprinaDaria%2FTelegramBot-OrderStripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuprinaDaria%2FTelegramBot-OrderStripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChuprinaDaria","download_url":"https://codeload.github.com/ChuprinaDaria/TelegramBot-OrderStripe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChuprinaDaria%2FTelegramBot-OrderStripe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267117283,"owners_count":24038641,"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-07-26T02:00:08.937Z","response_time":62,"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":["docker","order-management","payments","python","sqlite","stripe-api","telegram-bot","telegram-bot-api"],"created_at":"2025-03-31T02:23:05.980Z","updated_at":"2026-04-14T03:32:15.612Z","avatar_url":"https://github.com/ChuprinaDaria.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TelegramBot-OrderStripe\nA personal pet project developed for managing custom bot orders via Telegram, integrated with Stripe for payment processing. Deployed on Hetzner Cloud inside a Docker container, this bot was created both for personal use and for handling client requests quickly and securely.\n\n---\n\n## 🚀 Features\n\n- Telegram bot interface with friendly UI\n- Secure user authorization via phone number\n- Custom order creation system with auto-generated Stripe payment links\n- Pre-payment + post-payment logic\n- Dynamic contract generation\n- Admin notification for new orders\n- Full Stripe Checkout integration\n- SQLite database for lightweight order/user tracking\n\n---\n\n## 📊 Tech Stack\n\n- **Python** (telegram, asyncio)\n- **python-telegram-bot** for interaction\n- **Stripe API** for payments\n- **SQLite** as database\n- **Docker** for deployment\n- **Hetzner Cloud** as hosting\n\n---\n\n## 📁 Project Structure\n\n```bash\nTelegramBot-OrderStripe/\n├── bot_handlers.py        # Telegram UI logic and flow\n├── clients_new.py         # Client-side contract logic\n├── db_new.py              # SQLite database layer\n├── main_new.py            # Bot entry point\n├── payments_new.py        # Stripe integration\n├── requirements.txt       # Python dependencies\n├── schema.sql             # DB schema (orders, users)\n├── .gitignore             # Ignored files\n├── zminni.env.example     # Example .env configuration\n```\n\n---\n\n## 🔧 Setup Instructions\n\n### 1. Clone the repo\n```bash\ngit clone https://github.com/your-username/TelegramBot-OrderStripe.git\ncd TelegramBot-OrderStripe\n```\n\n### 2. Create your `.env` file\n```env\n# zminni.env\nTELEGRAM_BOT_TOKEN=your_bot_token\nSTRIPE_API_KEY=your_stripe_secret\nADMIN_USER_ID=123456789\nSUCCESS_URL=https://yourdomain.com/success\nCANCEL_URL=https://yourdomain.com/cancel\n```\n\n### 3. Install dependencies\n```bash\npip install -r requirements.txt\n```\n\n### 4. Initialize the database\n```bash\nsqlite3 mydatabase.db \u003c schema.sql\n```\n\n### 5. Run the bot\n```bash\npython main_new.py\n```\n\n---\n\n## 📦 Docker Deployment (optional)\n\nYou can also deploy using Docker:\n\n```dockerfile\n# Dockerfile\nFROM python:3.10\nWORKDIR /app\nCOPY . /app\nRUN pip install --no-cache-dir -r requirements.txt\nCMD [\"python\", \"main_new.py\"]\n```\n\n```bash\ndocker build -t telegram-bot-order .\ndocker run --env-file=zminni.env telegram-bot-order\n```\n\n---\n\n## 🏑️ Database Schema\n\n```sql\n-- schema.sql\nCREATE TABLE IF NOT EXISTS users (\n    user_id INTEGER PRIMARY KEY,\n    username TEXT,\n    phone_number TEXT\n);\n\nCREATE TABLE IF NOT EXISTS orders (\n    id INTEGER PRIMARY KEY,\n    user_id INTEGER,\n    username TEXT,\n    order_details TEXT,\n    amount REAL,\n    status TEXT,\n    currency TEXT\n);\n```\n\n---\n\n## 🚀 Live Bot\nCheck it out: [@Channel_orders_bot](https://t.me/Channel_orders_bot)\n\n---\n\n## 🙌 About\nThis project demonstrates integration of:\n- Telegram UI\n- Payment automation via Stripe\n- Order management system\n- Cloud \u0026 Docker deployment\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuprinadaria%2Ftelegrambot-orderstripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchuprinadaria%2Ftelegrambot-orderstripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchuprinadaria%2Ftelegrambot-orderstripe/lists"}