Telegram for Claude Code
by AXEG0
README.md
<div align="center">
# Telegram for Claude Code
**Talk to your Claude Code session from Telegram, and watch it work.**
Sister plugin for Codex: [Telegram for Codex](https://github.com/AXEG0/codex-telegram)
[](external_plugins/telegram/README.md)
[](https://core.telegram.org/bots/api)
[](LICENSE)
<img src="docs/claude-telegram-demo.gif" width="320" alt="Claude writes first in a Telegram chat: it offers to review two pull requests, its live subagents message updates in place while the reviews and a test shell run, then it sums up with buttons">
<sub>Illustration: the task and the messages are made up.</sub>
</div>
AXEG0's fork of Anthropic's official Telegram channel plugin. Your bot forwards
messages into the Claude Code session, and Claude replies, reacts and edits
through it.
## ๐ Quick start
```sh
claude plugin marketplace add AXEG0/claude-telegram
claude plugin install telegram@claude-telegram
claude --dangerously-load-development-channels plugin:telegram@claude-telegram
```
Claude Code shows a development-channels warning at start because, while
channels are in research preview, only the channel plugins in Anthropic's
official marketplace are on its default allowlist
([channels](https://code.claude.com/docs/en/channels#research-preview),
[channels reference](https://code.claude.com/docs/en/channels-reference#test-during-the-research-preview)).
Then give the bot its token with `/telegram:configure` and pair your account.
The [setup guide](external_plugins/telegram/README.md#quick-setup) walks
through BotFather, the token and pairing. With the official plugin installed,
disable it first (`claude plugin disable telegram@claude-plugins-official`):
both share the same token and pairing.
Turn on the optional features in `~/.claude/channels/telegram/.env`:
```sh
# Rich messages
TELEGRAM_RICH_MESSAGES=true
# Voice messages as text
TELEGRAM_STT_OPENAI_KEY=sk-...
```
## โจ Features
| | [Official plugin](https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/telegram) | This plugin |
| --- | --- | --- |
| โจ๏ธ **Typing** | Once, for up to 5 seconds, when a message arrives | Stays on for the whole turn |
| ๐๏ธ **Voice notes** | Reach Claude as a file to download | Reach Claude as text, transcribed by OpenAI with your key |
| โฉ๏ธ **Replies** | Claude doesn't see the message you replied to | Claude sees the message you replied to and the part you quoted |
| โ๏ธ **Edits and reactions** | Not passed on | Reach Claude as an edit of that message, or as your reaction to it |
| ๐ **Buttons** | Only on permission prompts | Claude puts answer buttons under its questions, and your tap reaches it |
| ๐ **Formatting** | Plain text, or MarkdownV2 that Claude has to escape | With rich messages on, headings, tables, task lists and collapsible sections |
| ๐ค **Subagents and shells** | Not shown | One live message in your chat lists them while they run |
| ๐จ **A stuck turn** | No notice | The bot tells you after 10 minutes with no activity, and again when Claude is back |
| ๐ค **Other bots** | No `bot` command in its access skill | Add a bot with `/telegram:access bot <id> @username`; Claude writes to it first and gets its replies |
| ๐ก **Telegram outages** | Polling retries with backoff; nothing tracks a send Telegram never answered | Back within about a minute; Claude learns which of its messages may not have arrived and sends again what matters |
| โ ๏ธ **Failed turns** | No hooks, no notice | The bot tells you once when a turn ends on an error, and again when turns work again |
| ๐ **Messages from files** | Claude types every message out | Claude sends a Markdown file it already wrote as the message, and each message it gets is saved as a file too |
| ๐ฆ **Bursts** | Each message reaches Claude on its own | Quick texts, a split long paste, and photos with their text arrive as one message, so Claude answers once |
| ๐ฃ๏ธ **Your word while Claude works** | Claude Code marks it as not from you, and it stays that way | It comes back marked as yours when the turn ends |
| ๐ **Permission prompts** | Sent to everyone on the allowlist | Sent to you alone, and only your tap or `yes <code>` answers |
| ๐๏ธ **Logs and diagnostics** | Only stderr, which Claude Code keeps until the plugin has started | A log file, a record of every call to Telegram and rate limit, and one command that prints what happened in a time window |
Plus everything from the official plugin: pairing and allowlists, photos and
files, and Claude's own reactions. Each feature in full: the [plugin README](external_plugins/telegram/README.md).
## ๐ In the chat
```
๐ค Subagents ยท ๐ Shells
1. โณ general-purpose ยท Review PRs 3 and 4 ยท Checking gate ยท 4m 31s ยท 85.4k tokens
2. โ
Done in 1m 12s ยท Explore ยท Find the retry logic ยท 41.3k tokens
3. โณ shell ยท Wait for CI ยท 2m 5s
```
## ๐ Docs
- [Plugin README](external_plugins/telegram/README.md): setup, settings, tools and how each feature behaves.
- [ACCESS.md](external_plugins/telegram/ACCESS.md): DM policies, groups and allowlists.
## About
Forked from [anthropics/claude-plugins-official](https://github.com/anthropics/claude-plugins-official).
This marketplace publishes the Telegram plugin; the other directories come from
the upstream repository. Licensed under [Apache 2.0](LICENSE).
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessNo recent community issues