Skip to main content

Module messaging_bridges

Module messaging_bridges 

Source
Expand description

The messaging bridges (Discord, Telegram, Slack, WhatsApp) started once the settings are loaded, one function each. Moved out of spawn_background_subsystems without a change in behaviour.

Functionsยง

start_discord_bridge ๐Ÿ”’
Discord messaging bridge โ€” connects to Discord Gateway if configured. Set messaging:discord:enabled + messaging:discord:token in settings.json to activate.
start_messaging_bridges ๐Ÿ”’
start_slack_bridge ๐Ÿ”’
Slack messaging bridge โ€” opens a Socket Mode connection if configured. Set messaging:slack:enabled + messaging:slack:bot_token + messaging:slack:app_token in settings.json to activate.
start_telegram_bridge ๐Ÿ”’
Telegram messaging bridge โ€” long-polls getUpdates if configured. Set messaging:telegram:enabled + messaging:telegram:token in settings.json to activate.
start_whatsapp_bridge ๐Ÿ”’
WhatsApp Cloud API messaging bridge โ€” outbound send + inbound webhook receiver. Unlike Discord/Telegram/Slack there is no bridge-managed network connection to open at startup: inbound delivery is passive HTTP (the GET/POST /webhook/whatsapp routes, registered unauthenticated in server/mod.rs โ€” Meta cannot supply X-AuthKey), reachable only once the operatorโ€™s own tunnel is up and the callback URL is registered in Metaโ€™s App Dashboard, both manual one-time steps this process does not perform (v1 does not manage a tunnel subprocess โ€” see messaging/whatsapp/mod.rs). Set messaging:whatsapp:enabled + access_token/app_secret/webhook_verify_token in settings.json to activate. See docs/specs/SPEC_MESSAGING_INTEGRATION_WHATSAPP_2026_07_07.md.
withhold_bridge_tokens ๐Ÿ”’
Starts every messaging bridge the settings turn on. The tokens in settings.json that the bridges sign in with are never written into an agentโ€™s transcript.