| name | add-telegram |
| description | Add Telegram as a channel. Can replace WhatsApp entirely or run alongside it. Also configurable as a control-only channel (triggers actions) or passive channel (receives notifications only). |
Add Telegram Channel
This skill adds Telegram support to NanoClaw, then walks through interactive setup.
Phase 1: Pre-flight
Check if already applied
Check if src/channels/telegram.ts exists. If it does, skip to Phase 3 (Setup). The code changes are already in place.
Ask the user
Use AskUserQuestion to collect configuration:
AskUserQuestion: Do you have a Telegram bot token, or do you need to create one?
If they have one, collect it now. If not, we'll create one in Phase 3.
Phase 2: Apply Code Changes
Ensure channel remote
git remote -v
If telegram is missing, add it:
git remote add telegram https://github.com/qwibitai/nanoclaw-telegram.git
Merge the skill branch
git fetch telegram main
git merge telegram/main || {
git checkout --theirs package-lock.json
git add package-lock.json
git merge --continue
}
This merges in:
src/channels/telegram.ts (TelegramChannel class with self-registration via registerChannel)
src/channels/telegram.test.ts (unit tests with grammy mock)
import './telegram.js' appended to the channel barrel file src/channels/index.ts
grammy npm dependency in package.json
- in