Telegram Setup
Telegram Setup
Section titled “Telegram Setup”1. Create a bot
Section titled “1. Create a bot”- Open a chat with @BotFather
- Send
/newbot - Pick a name and a username
- BotFather replies with a token (looks like
1234567890:ABC...). Copy it
2. Find your Telegram user ID
Section titled “2. Find your Telegram user ID”You’ll need this to whitelist yourself. Talk to a “userinfobot” or similar — the ID is a number, not a @username.
3. Configure Ptah
Section titled “3. Configure Ptah”Open Settings → Messaging → Telegram:
- Paste the bot token. The UI encrypts it via the OS keyring before persisting — never edit it directly in
settings.json - Add your numeric user ID to Allowed user IDs (
gateway.telegram.allowedUserIds) - Enable Telegram (
gateway.telegram.enabled = true) - Enable the global Messaging Gateway (
gateway.enabled = true)
4. Pair the binding
Section titled “4. Pair the binding”- Open Telegram and send any message to your bot
- The bot replies with a 6-digit pairing code
- Open Settings → Messaging → Bindings in Ptah
- Approve the pending binding using the code
After approval, every subsequent message you send is forwarded to the agent. Replies stream back as edits to a single message (see Stream coalescing).
Voice messages
Section titled “Voice messages”Send a voice note like normal — Ptah transcribes via Whisper and sends the text to the agent. Requires ffmpeg available on the host. See Voice messages.