How amir-aghajani/amo-bot works
AmoBot is a Persian, Telegram-centered VPN subscription shop with customer, agent, and owner experiences. The main customer workflow is browsing plans and services, placing an order, paying into the shop, and receiving or managing a VPN service; owners and agents configure shops through web panels. The README also documents imports, backups, scheduled work, and report-group operations, so these appear as separate capabilities. The available source excerpts are selective: most domain relationships below follow README descriptions, not inspection of every implementation.
Main entry points: WebhookController.php Telegram bot · app/app.tsx Telegram mini app · admin/app.tsx Owner and agent panels · OrderService.php Orders and pricing
Components 23
Customer experiences
- Telegram bot
app/Modules/Telegram/Controllers/WebhookController.php - Telegram mini app
resources/panel/src/apps/app/app.tsx - Store API
app/Modules/Store/Api/CheckoutController.php - Customer accounts
app/Modules/Accounts/Services
Shop commerce
- Plans and catalog
app/Modules/Catalog/Services/PlanService.php - Orders and pricing
app/Modules/Orders/Services/OrderService.php - Payments and deposits
app/Modules/Payments/Services/PaymentService.php - Gateway callbacks
app/Modules/Payments/Controllers/GatewayWebhookController.php
VPN services
- Service provisioning
app/Modules/Subscriptions/Services/ProvisioningService.php - VPN panels
- Service management
app/Modules/Providers/Models/Server.php
Shop management
- Owner and agent panels
resources/panel/src/apps/admin/app.tsx - Shop administration API
app/Modules/Admin/Api - Shop imports
app/Modules/Imports/Importer.php - Backups and restore
app/Modules/Backups/Backups.php - Report group
app/Modules/Telegram/Reports
Runtime operations
- Scheduled tasks
app/Core/Scheduling/Scheduler.php - Cron endpoint
app/Core/Http/Controllers/CronController.php - Application runtime
app/Core/Application.php - Application database
app/Core/Database/DatabaseManager.php
Other components
- Customer
- Shop owner
- Shop agent
Connections 25
- Customer → Telegram bot: uses shop
README.md - Customer → Telegram mini app: opens in Telegram
README.md - Customer → Store API: uses website
README.md - Telegram bot → Customer accounts: signs in
README.md - Telegram mini app → Customer accounts: shares account
README.md - Telegram bot → Plans and catalog: browses plans
README.md - Telegram mini app → Plans and catalog: browses plans
README.md - Store API → Plans and catalog: offers shop
README.md - Telegram bot → Orders and pricing: places order
README.md - Telegram mini app → Orders and pricing: places order
README.md - Store API → Orders and pricing: checks out
README.md - Orders and pricing → Payments and deposits: accepts payment
README.md - Gateway callbacks → Payments and deposits: confirms payment
app/Modules/Payments/Controllers/GatewayWebhookController.php - Payments and deposits → Service provisioning: enables delivery
README.md - Service provisioning → VPN panels: creates service
README.md - Customer → Service management: manages service
README.md - Shop owner → Owner and agent panels: runs shop
README.md - Shop agent → Owner and agent panels: runs shop
README.md - Owner and agent panels → Shop administration API: manages through API
README.md - Owner and agent panels → Shop imports: reviews import
README.md - Shop administration API → Backups and restore: manages backups
README.md - Shop owner → Report group: acts on reports
README.md - Cron endpoint → Scheduled tasks: ticks scheduler
app/Core/Http/Controllers/CronController.php - Scheduled tasks → Application database: runs tasks
- Application runtime → Application database: boots database
app/Core/Application.php