Skip to main content

openclaw_channels/
lib.rs

1//! # `OpenClaw` Channels
2//!
3//! Channel adapters for messaging platforms.
4
5#![forbid(unsafe_code)]
6#![warn(missing_docs)]
7
8mod allowlist;
9mod registry;
10mod routing;
11mod traits;
12
13/// Discord channel adapter.
14pub mod discord;
15/// Matrix channel adapter.
16pub mod matrix;
17/// Signal channel adapter.
18pub mod signal;
19/// Slack channel adapter.
20pub mod slack;
21/// Telegram channel adapter.
22pub mod telegram;
23/// WhatsApp channel adapter.
24pub mod whatsapp;
25
26pub use allowlist::{Allowlist, AllowlistEntry};
27pub use registry::ChannelRegistry;
28pub use routing::AgentRouter;
29pub use traits::{
30    Channel, ChannelCapabilities, ChannelContext, ChannelError, ChannelInbound, ChannelOutbound,
31    ChannelProbe, DeliveryMode, OutboundContext,
32};
33
34// Re-export channel implementations
35pub use discord::DiscordChannel;
36pub use matrix::MatrixChannel;
37pub use signal::SignalChannel;
38pub use slack::SlackChannel;
39pub use telegram::TelegramChannel;
40pub use whatsapp::WhatsAppChannel;