Files
fitcrm/docs
root fe07f3e13f feat(telegram-bot): add Telegram Bot Constructor module
Full-stack module for building Telegram chatbot scenarios in CRM.

Backend (NestJS):
- 6 Prisma models: TgBot, TgBotScenario, TgBotSubscriber, TgBotMessage,
  TgBotBroadcast, TgBotWebhook
- JSON scenario engine with 6 node types: message, condition, action,
  input, delay, referral
- Referral mechanics: deep links, invite tracking, friend routing
- Broadcasts with 10 audience filters, batch sending with rate limiting
- Outgoing webhooks: 9 event types, HMAC-SHA256 signing, retry
- CRM integration: create deals from bot scenarios
- Analytics: subscriber stats, referral metrics, funnel, daily growth
- 12 services, 4 BullMQ processors, 7 controllers, ~35 REST endpoints

Frontend (web-club-admin):
- 8 pages: bot list, dashboard, subscribers, broadcasts, scenario editor,
  webhooks, analytics
- Visual scenario editor with React Flow: 6 custom node types
- Sidebar: module-aware visibility (Hide, Don't Block)

Includes Powerhouse Gym referral scenario (24 nodes) and user docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:40:03 +00:00
..