This project provides a Telegram bot interface to the Kiro CLI, allowing users to interact with Kiro through Telegram messages. The bot maintains a persistent Kiro session and forwards messages between Telegram and the CLI.
# Run the bot (installs dependencies automatically)
make run
# Or manually:
make setup # Install dependencies
python3 telegram_kiro_bot.pytelegram_kiro_bot.py- Main bot applicationsettings.ini- Bot configuration (token, authorized users)requirements.txt- Python dependenciesMakefile- Build and run commandstelegram-kiro-bot.service- Systemd service file
Edit settings.ini:
[telegram]
token = YOUR_BOT_TOKEN
[bot]
authorized_user = your_telegram_username
auto_trust = true
progress_updates = truemake run- Start the botmake test- Run testsmake install- Install as systemd servicemake service-start- Start servicemake service-stop- Stop servicemake service-status- Check service statusmake clean- Clean up virtual environment
- Bot starts persistent
kiro-cli chatsession - Receives Telegram messages from authorized users
- Forwards messages to Kiro CLI
- Returns Kiro responses back to Telegram
- Handles tool trust prompts automatically (if enabled)
- Maintains session state with
/saveand/load
- Check
bot.logfor errors - Ensure Kiro CLI is installed and accessible
- Verify Telegram bot token is valid
- Check authorized user matches your Telegram username