Bots.Business API v2 is a production-ready REST API for building, running, and scaling Telegram bots from your own backend and tools. It covers the full lifecycle: authentication, bot creation and control, command management, broadcasting, chat moderation, configuration UIs, Git/CSV workflows, and access to a catalog of demo bots and libraries. The API is organized under api.bots.business/v2/....What you can do#
Authenticate users with email/password or a Telegram deep-link flow. The Telegram flow returns a login URL and secret you redirect the user to, then you confirm login on your side. Manage bots: create, edit, start/stop, copy; import/export from Git; bulk import via CSV; inspect and clear error logs. Ship configurable bots: expose settings via Admin Panels (typed fields, on-save hooks) and install reusable Libraries. Start fast with a Demo Store of ready-made bots you can install via API. Handle quotas & plans: read the current payment plan, toggle ads to raise iteration limits, and list cloud hosting plans. Core concepts & endpoints (high level)#
Email/password sign-in and session/token utilities.
Telegram Sign-In helper: POST /v2/tg_sign_in → returns a link and secret to complete login in Telegram.
Create/get/edit/delete; start/stop; Git import/export (/git_import_tasks, /git_export_tasks); CSV import and status; error logs.
Organize bot logic with CRUD on commands and folders.
Query tasks: GET /v2/bots/{id}/broadcaster_tasks (progress, status, scope). Pause/resume/delete tasks as needed.
GET /v2/bots/{id}/chats returns private and group chats with user metadata. Block/unblock endpoints are available.
Admin Panels: deliver dynamic settings UIs (string/number/password/checkbox/text etc.) with optional command hooks on save.
Libraries: discover and install reusable modules (e.g., resources/balances).
Demo Store collections: GET /v2/store/collections lists installable demo bots by category.
Cloud plans: GET /v2/clouds shows hosting options and specs.
Read your plan: GET /v2/user/payment_plan.
Toggle ads to increase iteration limits: POST /v2/user/iterations/toggle_ads.
Quickstart (cURL)#
Replace YOUR_API_KEY or use the sign-in / Telegram flow described in the docs.
(See the Bots section for CRUD and start/stop.)(Then call the install endpoint for the selected demo bot.)When to use what#
Use Admin Panels if your bot needs an operator-friendly settings UI without rebuilding the app. Use Libraries to avoid reinventing common features (e.g., balances/resources). Use Broadcast for mass actions (announcements, command runs) with progress tracking. Use the Demo Store to prototype quickly or as learning references. Modified at 2025-11-02 09:04:30