Skip to content

Telegram Setup

  1. Open a chat with @BotFather
  2. Send /newbot
  3. Pick a name and a username
  4. BotFather replies with a token (looks like 1234567890:ABC...). Copy it

You’ll need this to whitelist yourself. Talk to a “userinfobot” or similar — the ID is a number, not a @username.

Open Settings → Messaging → Telegram:

  1. Paste the bot token. The UI encrypts it via the OS keyring before persisting — never edit it directly in settings.json
  2. Add your numeric user ID to Allowed user IDs (gateway.telegram.allowedUserIds)
  3. Enable Telegram (gateway.telegram.enabled = true)
  4. Enable the global Messaging Gateway (gateway.enabled = true)
  1. Open Telegram and send any message to your bot
  2. The bot replies with a 6-digit pairing code
  3. Open Settings → Messaging → Bindings in Ptah
  4. 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).

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.