Repository navigation
Telegram
Status: Implemented
Last Updated: 2026-11-13
Audience: Users
Last verified: 2026-11-13 against b1688a8de
Code: src/Martlet.Messaging, src/Martlet.Desktop/Messaging.cs, src/Martlet.Desktop/Pages/Messaging
Write to Martlet from your phone. She answers Telegram and WhatsApp messages in the same conversation as the talk window, with the same Thinking model, personality and memory. Her replies come back as text.
Open Companion › Messaging. Connect an app as described below. Connecting turns on answers on this PC; you can change this under Answer messages.
- In Telegram, open BotFather (Open BotFather), send
/newbotand choose a name for your Martlet bot. - Paste the token that BotFather gives you into Bot token, and press Connect.
- Press Pair a chat. Martlet shows a six-digit code for 10 minutes.
- Send the code to your bot, or press Open in Telegram.
Martlet asks Telegram for new messages itself, so you need no public address, open port or webhook. The token is stored in Windows Credential Manager. It is also shared as a secret with your paired computers and sent to Telegram.
If Telegram doesn't accept the token, copy it again from BotFather. Only one program can read a bot's messages, so use each bot with one Martlet only.
Martlet uses Meta's official WhatsApp Cloud API. Nothing runs against your personal WhatsApp account. You write to a WhatsApp business number you own; Meta's free test number is enough.
- Press Create a Meta app. Choose the use case Connect with customers through WhatsApp.
- In the app, open WhatsApp › API Setup. Under To, add your own phone number and confirm it with the code WhatsApp sends. The test number can talk to up to five confirmed numbers.
- Make a permanent access token in System users. Add a system user (Admin),
give it your app and your WhatsApp account with full control, and generate a
token with
whatsapp_business_messagingandwhatsapp_business_management. The temporary token on API Setup also works, but only for 24 hours. - In the app, open App settings › Basic and copy the App secret.
- In Martlet, paste the Access token and the App secret, and press Connect. Leave the IDs empty; Martlet finds them.
- Press Pair a chat. Send the code to the number, or press Open in WhatsApp.
Martlet finds your number and sets up the webhook itself. You don't configure Webhooks in Meta. When Meta refuses the token or secret, Martlet says why: make a new token, copy the app secret again, or add a phone number in API Setup.
WhatsApp delivers messages to a public web address. Martlet makes one for you
with a free Cloudflare quick tunnel, so you change nothing on your router. It
needs Cloudflare's cloudflared: Martlet uses one you have, or Get
cloudflared downloads Cloudflare's official copy after you agree. If you have
your own public HTTPS address, put it in Public address (optional).
Get cloudflared asks first. It downloads Cloudflare's program (about 60 MB)
into Martlet's tools folder and checks it.
Martlet runs it only while it answers WhatsApp. If the download fails, install
it yourself with winget install Cloudflare.cloudflared and try again. Martlet
doesn't run a copy whose checks fail.
Martlet accepts only messages signed with your app secret. It keeps the token and the secret in Windows Credential Manager, shares them with your paired computers, and sends them to Meta. Use a Meta app for Martlet only.
- Martlet answers only the chats you paired. She ignores group chats. An unpaired chat can receive pairing instructions once while Martlet runs. Its messages do not reach the Thinking model.
- She answers while Martlet runs on this PC, also while Windows is locked. Then she uses text only: never the microphone, the screen or her voice.
- Also say replies aloud on this PC speaks her replies too, but never while Windows is locked. It is off by default.
- Use each bot or number on one PC. A host PC never answers.
- She reads text only for now. Photos, voice notes and stickers get a short note.
- A tool or smart-home action that asks first waits for you at the PC.
- Remove unpairs one chat. The chat can pair again with a new code.
- Disconnect stops the app, deletes its keys from this PC and forgets the paired chats. The Telegram bot stays in Telegram; delete it with BotFather if you no longer need it. Your Meta app and number stay too; delete them at developers.facebook.com.
- When Martlet is closing or busy on your PC, or takes too long, she replies that you should try again in a moment.
Your messages show in the talk window as "Name (Telegram)" or "Name (WhatsApp)". They are kept in Conversations with the rest of your history. See Memory.
- Telegram: delete a message on the Conversations page, and Martlet deletes it in Telegram too (within Telegram's 48 hours). Edit her reply there, and it changes in Telegram. A bot can't edit your own messages.
- WhatsApp: the Cloud API can't delete or edit sent messages, so a change stays in Martlet only.
More detail: Messaging, Conversation history, MCP.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine