Telegram Plus
Connect a Telegram bot to your Claude Code session with an MCP channel server.
Based on the official telegram plugin (Apache-2.0), restructured into modules with tests, several security/reliability fixes, and richer inbound context. See What's different.
Setup
Setup takes about 10 minutes. Part 1 is all you need to chat with Claude from your phone. Part 2 adds one forum topic per project. It's optional, except if you use claude-orchestrator, which needs Part 2.
Each step says where to run it:
- 📱 Telegram: on your phone or in Telegram Desktop.
- 💻 Terminal: your normal shell (zsh/bash).
- 🤖 Claude Code: type it at the Claude Code prompt (commands starting with
/).
Before you start
- Claude Code, signed in with a claude.ai account or a Console API key. Channels don't work on Bedrock, Vertex or Foundry. Team/Enterprise orgs must turn channels on first.
- Bun. 💻
curl -fsSL https://bun.sh/install | bash (or brew install oven-sh/bun/bun). Check with bun --version.
Part 1: chat with Claude in a DM
Step 1. Create a bot. 📱
Open @BotFather, send /newbot and follow the questions (a display name, then a username ending in bot). BotFather replies with a token that looks like 123456789:AAH…. Keep it secret; anyone with it controls the bot.
Step 2. Install the plugin. 🤖
Start Claude Code anywhere (claude) and run:
/plugin marketplace add kusumachan/claude-telegram-plugin
/plugin install telegram-plus@telegram-plus-dev
Then run /reload-plugins, or quit and start Claude Code again. No need to clone the repo; Claude Code downloads it.
Step 3. Save the bot token. 🤖
/telegram-plus:configure 123456789:AAH...
The token is saved to ~/.claude/channels/telegram-plus/.env. You only do this once.
Step 4. Add the claude-tg command. 💻
Add this line to ~/.zshrc (or ~/.bashrc), then open a new terminal:
claude-tg() { sh -c 'export TELEGRAM_PLUS_CHANNEL_PID=$$; exec claude --dangerously-load-development-channels plugin:telegram-plus@telegram-plus-dev "$@"' claude-tg "$@"; }
claude-tg starts Claude Code connected to Telegram. Plain claude still starts a normal session. Why is this needed?
Step 5. Start Claude with claude-tg. 💻
Quit Claude Code, go to the project you want to work on, and start it with claude-tg:
cd ~/code/my-project
claude-tg
Claude Code may show a warning about development channels. Accept it. This session is now connected to Telegram.
Step 6. Pair your Telegram account. 📱 then 🤖
Keep the session from step 5 running. Send any message to your bot in Telegram. It replies with a code:
Pairing required — run in Claude Code:
/telegram-plus:access pair a1b2c3
Run that command in Claude Code. Send your bot another message: Claude now answers it in Telegram.
Step 7. Lock the bot. 🤖
/telegram-plus:access policy allowlist
From now on the bot ignores everyone you haven't paired. Do this as soon as everyone who should use the bot (usually just you) is paired.
Check it. 🤖 /telegram-plus:access shows your policy (allowlist) and your Telegram user id under allowFrom. Note the id; Part 2 needs it.
That's Part 1. Every time you want Claude on Telegram, start the session with claude-tg. Other sessions started with plain claude still send you approvals and "done" notices on Telegram (details).
Part 2 (optional): one topic per project
Required if you use claude-orchestrator.
Instead of a single DM, use a group with Topics. Each project gets its own topic, so chats, approvals and notices for api and web stay separate.
Group "Claude" (Topics on)
├─ api ← talk to the api session; its approvals and notices land here
├─ web ← same for web
└─ General ← /sessions, picker, everything else
Step 1. Create the group. 📱
Create a new group (just you in it), open its settings and turn Topics on.
Step 2. Add the bot as an admin. 📱
Add your bot to the group, then make it an admin with the Manage Topics permission.
Step 3. Let the bot see all messages. 📱
In @BotFather send /setprivacy, pick your bot and choose Disable. Then remove the bot from the group and add it again (and make it admin again). Telegram only applies the privacy change when the bot rejoins.