Bidirectional Telegram messaging for Claude Code with remote permission control
npx claudepluginhub remingtonspaz/claude-code-telegramBidirectional Telegram messaging for Claude Code with remote permission control
Bidirectional Telegram messaging for Claude Code with remote permission control.
;commit on Telegram to run /commit in Claude CodeAdd the marketplace:
/plugin marketplace add https://github.com/remingtonspaz/claude-code-telegram
Install the plugin:
/plugin install telegram-integration:telegram
Install MCP server dependencies:
cd ~/.claude/plugins/marketplaces/telegram-integration/mcp-server
npm install
On Windows: cd %USERPROFILE%\.claude\plugins\marketplaces\telegram-integration\mcp-server
Configure credentials in your project (see Setup below)
Restart Claude Code
node install.js
cd mcp-server && npm install
mkdir ~/.claude-telegram
.mcp.json.template to .mcp.json and add your credentials.claude/settings.local.json (see Hooks Configuration below)/newbot and follow the prompts123456789:ABCdefGHIjklMNOpqrsTUVwxyz)123456789)Add the MCP server to your project's .mcp.json with your credentials:
{
"mcpServers": {
"telegram": {
"command": "node",
"args": ["/path/to/claude-code-telegram/mcp-server/server.js"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_USER_ID": "your_user_id_here"
}
}
}
}
Replace /path/to/claude-code-telegram with:
./claude-code-telegram)~/.claude/plugins/)Each project can have its own .mcp.json with different Telegram credentials.
Message your bot on Telegram to start the conversation. The bot can only message you if you've messaged it first.
Restart Claude Code to load the MCP server and hooks.
Run the status check to verify everything is configured:
node install.js --status
Or check /mcp in Claude Code to see if the telegram server is connected.
The hooks should be configured automatically if you place this plugin in your project. If not, add the following to .claude/settings.local.json:
{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "node path/to/hooks/telegram-context.js"
}
]
}
],
"PermissionRequest": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "node path/to/hooks/permission-telegram.cjs"
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "node path/to/hooks/session-start.js"
}
]
}
]
}
}
Claude can send messages to you using the MCP tools:
telegram_send - Send a text messagetelegram_send_image - Send an image filetelegram_check_messages - Check for pending messages[Telegram Messages Received] ...When you send a Telegram message, the watcher script automatically:
No need to manually press Enter!