Skip to main content

Module messaging_handlers

Module messaging_handlers 

Source
Expand description

HTTP handlers for the messaging bridge layer.

Routes: GET /api/messaging/status — health of all active bridges POST /api/messaging/discord/send — send a message via the Discord bridge POST /api/messaging/telegram/send — send a message via the Telegram bridge POST /api/messaging/slack/send — send a message via the Slack bridge POST /api/messaging/whatsapp/send — send a message via the WhatsApp bridge

The WhatsApp inbound webhook receiver (GET/POST /webhook/whatsapp) is not here — it’s unauthenticated by necessity (Meta can’t supply X-AuthKey) and lives in messaging::whatsapp::webhook, registered directly on server/mod.rs’s top-level router alongside health, not in this authed handler module. See server/mod.rs and docs/specs/SPEC_MESSAGING_INTEGRATION_WHATSAPP_2026_07_07.md §8.2.

Structs§

DiscordSendRequest 🔒
POST /api/messaging/discord/send
EmbedFieldRequest 🔒
SlackSendRequest 🔒
POST /api/messaging/slack/send
TelegramSendRequest 🔒
POST /api/messaging/telegram/send
WhatsAppSendRequest 🔒
POST /api/messaging/whatsapp/send

Functions§

handle_discord_send 🔒
handle_slack_send 🔒
handle_status 🔒
GET /api/messaging/status
handle_telegram_send 🔒
handle_whatsapp_send 🔒