Below are the instructions you need to do to support voice controlled messages in Claude Code. Preferrably you use this from a long-running server instance (e.g. a VPS or Mac Mini).
- Claude Code
- Telegram (with your own user account)
- whisper (brew install whisper)
- Install plugin for telegram channel support: type /plugin in claude code and search for telegram. Install it
- Restart claude with following command: claude --channels plugin:telegram@claude-plugins-official
- Register a Telegram bot by sending a message to @BotFather: /start, followed by /newbot. Choose a bot name and continue until you get the bot token.
- In claude code: /telegram:configure
- Send a message to your new bot in telegram. You will get back a pairing token
- In claude code: telegram:access pair
- In claude code: /telegram:access policy allowlist
Now your Telegram bot should be connected only to your Telegram account. You should be able to send messages in Telegram, but voice is not supported yet.
Voice messages are not supported by default in the Telegram channel.
However, we can easily add support by instructing Claude to use whisper for local audio transcription.
We can do this by adding a section to the global CLAUDE.md (~/.claude/CLAUDE.md) that tells it to first transcribe all incoming messages. (See below.)
Restart claude, and now voice is supported as well! Multiple languages are supported as well thanks to whisper.