WhatsApp support bot
Green API webhook support for customer commands, private chats, group chats, linked users, and safe customer replies.
The platform combines WhatsApp automation, Telegram automation, ticket support, provider routing, secure tenant settings, cooldowns, logs, broadcasts, subscriptions, and master admin controls.
These features control the main customer-facing support automation flow.
Green API webhook support for customer commands, private chats, group chats, linked users, and safe customer replies.
Tenant-specific Telegram bot support with polling/webhook-ready flow, chat IDs, group routing, and linked Telegram users.
Ticket subject rules can trigger order workflows from panel tickets while keeping SaaS support tickets separate.
Handles speed, cancel, refill, balance, help/commands, bulk IDs, aliases, and strict silent behavior for unsupported messages.
Fetches order details through Admin API and verifies that the order belongs to the linked customer username.
Provider groups receive clean external ID commands like external_id speed, external_id cancel, or external_id refill.
The bot is not just forwarding messages. It checks order state, service rules, cooldowns, and route configuration first.
Map provider domains, keys, and aliases to WhatsApp groups or Telegram groups with custom command templates.
Prevents repeated command requests for the same order and action within the configured cooldown window.
Avoids duplicate processing of repeated webhook or polling events using message/update keys.
Supports service name parsing or cached service rules for start-time and refill eligibility decisions.
Checks completed status, refill coverage, lifetime refill, refill windows, and service metadata before dispatch.
Checks order status, remains, service start time, and cooldown before sending speed request to provider.
Each workspace includes setup, routing, communication, logs, templates, and support tools.
Link WhatsApp or Telegram chat IDs to panel usernames so the bot knows who is allowed to manage which orders.
Support/admin chats can be configured separately for controlled support-side operations.
Send updates and announcements to linked users with delivery logs, retry safety, and plan-based medium control.
Customize customer-facing messages for success, failed orders, provider missing, route missing, and API problems.
Command logs, message logs, dispatch logs, cooldown records, and ticket activity make debugging easier.
Workspace and master admin tools help monitor webhook, polling, cron, API, and configuration status.
The system separates tenants, avoids exposing technical errors to customers, and protects sensitive configuration data.
Sensitive settings such as API keys, bot tokens, credentials, and connection secrets are designed to be stored securely instead of being exposed in plain frontend pages.
Each customer workspace has separate settings, routes, linked chats, commands, cooldowns, logs, subscriptions, and runtime state.
Technical provider/API errors are converted into customer-safe messages while detailed issues remain available in logs/admin areas.
The bot uses Admin API to fetch users, orders, services, ticket data, and verify ownership before any provider dispatch.
Cron runners use lock-style protection to avoid overlapping executions where supported by the hosting environment.
Allowed mediums and module access are controlled by subscription plan, so Telegram-only or WhatsApp-only plans stay restricted.
The product is not limited to one bot. It is structured as a SaaS platform for multiple workspaces and support teams.
Customers can create invoices, choose plan/provider type, submit payment reference, and wait for approval.
Plan status, expiry, active modules, and allowed mediums are managed from the SaaS/customer workspace.
Platform owner can manage customers, plans, invoices, subscriptions, support queue, templates, and runtime health.
The system supports panel adapter logic so workspace owners can select the backend panel type during setup.
Background runners handle Telegram polling, ticket support processing, broadcast dispatch, and service cache refresh.
The setup is designed for multiple customers, separate workspaces, individual billing, and controlled automation modules.
Example: 2274209 refill or multiple IDs separated by commas.
Admin API fetches order details and checks linked username ownership.
Status, start time, refill coverage, cooldown, external ID, and provider route are checked.
The provider group receives clean text like external_id refill.
Command result, provider dispatch, cooldown, and customer reply are saved.
The bot reads service wording such as Start : 0-1 Hour and Refill : 30 Days directly from service names.
Fetch services from panel API, cache service data, then define start-time and refill rules directly from the workspace.
Start with one channel, map your providers, link users, test the Admin API, and gradually enable advanced service rules and broadcasts.