pub struct MessengerConfig {Show 28 fields
pub name: String,
pub messenger_type: String,
pub enabled: bool,
pub config_path: Option<PathBuf>,
pub token: Option<String>,
pub webhook_url: Option<String>,
pub homeserver: Option<String>,
pub user_id: Option<String>,
pub password: Option<String>,
pub access_token: Option<String>,
pub phone: Option<String>,
pub allowed_chats: Vec<String>,
pub allowed_users: Vec<String>,
pub app_token: Option<String>,
pub default_channel: Option<String>,
pub server: Option<String>,
pub port: Option<u16>,
pub nick: Option<String>,
pub irc_channels: Vec<String>,
pub use_tls: Option<bool>,
pub credentials_path: Option<String>,
pub spaces: Vec<String>,
pub app_id: Option<String>,
pub app_password: Option<String>,
pub pairing_code: Option<String>,
pub require_pairing: bool,
pub paired_users: Vec<String>,
pub dm: Option<DmConfig>,
}Expand description
Configuration for a messenger backend.
Fields§
§name: StringDisplay name for this messenger instance.
messenger_type: StringMessenger type: telegram, discord, signal, matrix, webhook.
enabled: boolWhether this messenger is enabled.
config_path: Option<PathBuf>Path to external config file (optional).
token: Option<String>Bot/API token (Telegram, Discord).
webhook_url: Option<String>Webhook URL (for webhook messenger).
homeserver: Option<String>Matrix homeserver URL.
user_id: Option<String>Matrix user ID (@user:homeserver).
password: Option<String>Password (Matrix).
access_token: Option<String>Access token (Matrix).
phone: Option<String>Phone number (Signal).
allowed_chats: Vec<String>Allowed chat IDs/channels (whitelist).
allowed_users: Vec<String>Allowed user IDs (whitelist).
app_token: Option<String>Slack app-level token for Socket Mode (optional).
default_channel: Option<String>Default channel to listen on (Slack).
server: Option<String>IRC server hostname.
port: Option<u16>Port number (IRC, BlueBubbles, etc.).
nick: Option<String>Nickname (IRC).
irc_channels: Vec<String>IRC channels to join.
use_tls: Option<bool>Whether to use TLS (IRC).
credentials_path: Option<String>Service account credentials path (Google Chat).
spaces: Vec<String>Google Chat spaces to listen on.
app_id: Option<String>Bot Framework app ID (Teams).
app_password: Option<String>Bot Framework app password (Teams).
pairing_code: Option<String>Pairing code required before accepting DMs from unknown users.
require_pairing: boolWhether DM pairing is required for this messenger.
paired_users: Vec<String>List of already-paired user IDs.
dm: Option<DmConfig>DM handling configuration.
Trait Implementations§
Source§impl Clone for MessengerConfig
impl Clone for MessengerConfig
Source§fn clone(&self) -> MessengerConfig
fn clone(&self) -> MessengerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more