|
| 1 | +# Telegram Multi-Bot Stack |
| 2 | + |
| 3 | +A Telegram multi-bot framework with: |
| 4 | + |
| 5 | +- separated group bots and private bots |
| 6 | +- multi-role collaboration across `OpenClaw / Gemini / Codex / Claude` |
| 7 | +- shared task queue |
| 8 | +- shared memory summaries |
| 9 | +- one-command env and launchd generation |
| 10 | +- flexible bot count scaling |
| 11 | + |
| 12 | +This project is suitable for: |
| 13 | + |
| 14 | +- task routing and reporting in team Telegram groups |
| 15 | +- high-permission execution in private chat |
| 16 | +- running multiple bots at once with clearly separated responsibilities |
| 17 | + |
| 18 | +Language: |
| 19 | + |
| 20 | +- Chinese: [README.md](./README.md) |
| 21 | +- English: [README.en.md](./README.en.md) |
| 22 | + |
| 23 | +## Quick Start |
| 24 | + |
| 25 | +```bash |
| 26 | +git clone https://github.com/ukgorclawbot-stack/telegram-multi-bot-stack.git |
| 27 | +cd telegram-multi-bot-stack |
| 28 | +bash ./install.sh |
| 29 | +bash ./configure.sh |
| 30 | +bash ./apply_stack.sh |
| 31 | +``` |
| 32 | + |
| 33 | +If you want a beginner-friendly walkthrough, read: |
| 34 | + |
| 35 | +- [INSTALL.md](./INSTALL.md) |
| 36 | + |
| 37 | +If you only want to preview generated files without starting services: |
| 38 | + |
| 39 | +```bash |
| 40 | +git clone https://github.com/ukgorclawbot-stack/telegram-multi-bot-stack.git |
| 41 | +cd telegram-multi-bot-stack |
| 42 | +bash ./install.sh |
| 43 | +bash ./configure.sh |
| 44 | +bash ./bootstrap_bot_stack.sh generate |
| 45 | +``` |
| 46 | + |
| 47 | +## Core Files |
| 48 | + |
| 49 | +- `group_bot.py`: shared entrypoint for group and private bot roles |
| 50 | +- `bot.py`: compatibility entrypoint for legacy Codex direct handling |
| 51 | +- `bootstrap_bot_stack.py`: generates env and launchd files from a TOML stack spec |
| 52 | +- `configure_stack.py`: interactive configuration wizard |
| 53 | +- `bootstrap_bot_stack.sh`: wrapper for generate/apply/export-live/migration-template |
| 54 | +- `apply_stack.sh`: loads local tokens and applies the stack |
| 55 | + |
| 56 | +## Common Commands |
| 57 | + |
| 58 | +```bash |
| 59 | +# Install dependencies |
| 60 | +bash ./install.sh |
| 61 | + |
| 62 | +# Run interactive configuration |
| 63 | +bash ./configure.sh |
| 64 | + |
| 65 | +# Generate files only, do not start services |
| 66 | +bash ./bootstrap_bot_stack.sh generate |
| 67 | + |
| 68 | +# Generate and start services |
| 69 | +bash ./apply_stack.sh |
| 70 | + |
| 71 | +# Run system health checks |
| 72 | +bash ./health_check.sh |
| 73 | +``` |
| 74 | + |
| 75 | +## Advanced Features |
| 76 | + |
| 77 | +```bash |
| 78 | +# Reverse export a live stack into a sanitized TOML file |
| 79 | +bash ./bootstrap_bot_stack.sh export-live |
| 80 | + |
| 81 | +# Build a migration-ready template for a fresh machine |
| 82 | +bash ./bootstrap_bot_stack.sh migration-template |
| 83 | +``` |
| 84 | + |
| 85 | +## License |
| 86 | + |
| 87 | +MIT |
0 commit comments