Skip to content

Messaging Settings

Gateway settings live under the gateway.* prefix in ~/.ptah/settings.json. Edit through Settings → Messaging.

KeyDefaultWhat it does
gateway.enabledfalseMaster kill-switch. Must be true for any platform to connect
gateway.coalesceMs800Stream coalesce window in milliseconds
gateway.voice.enabledtrueWhether voice attachments are transcribed and forwarded

Each platform exposes the same shape, with its own credential field:

KeyDefaultWhat it does
gateway.<platform>.enabledfalsePer-platform kill-switch
gateway.<platform>.tokenCipher(none)OS-keyring-encrypted token blob — never edit directly
gateway.<platform>.allowed*Ids[]Whitelist of user / guild / team IDs
KeyDefaultWhat it does
gateway.telegram.enabledfalsePer-platform kill-switch
gateway.telegram.tokenCipher(none)Encrypted bot token
gateway.telegram.allowedUserIds[]Numeric Telegram user IDs allowed to pair
KeyDefaultWhat it does
gateway.discord.enabledfalsePer-platform kill-switch
gateway.discord.tokenCipher(none)Encrypted bot token
gateway.discord.allowedGuildIds[]Guild IDs the bot may operate in
KeyDefaultWhat it does
gateway.slack.enabledfalsePer-platform kill-switch
gateway.slack.tokenCipher(none)Encrypted bot + app token blob
gateway.slack.allowedTeamIds[]Workspace (team) IDs the bot may operate in

Bindings, pairing codes, and message-tracking state live in ~/.ptah/ptah.db. Backing up that file backs up your gateway state.