feat(channels): add DingTalk channel support and documentation

This commit is contained in:
w0x7ce
2026-02-08 11:37:36 +08:00
parent 438ec66fd8
commit 240db894b4
5 changed files with 283 additions and 0 deletions

View File

@@ -77,6 +77,17 @@ class ChannelManager:
logger.info("Feishu channel enabled")
except ImportError as e:
logger.warning(f"Feishu channel not available: {e}")
# DingTalk channel
if self.config.channels.dingtalk.enabled:
try:
from nanobot.channels.dingtalk import DingTalkChannel
self.channels["dingtalk"] = DingTalkChannel(
self.config.channels.dingtalk, self.bus
)
logger.info("DingTalk channel enabled")
except ImportError as e:
logger.warning(f"DingTalk channel not available: {e}")
async def _start_channel(self, name: str, channel: BaseChannel) -> None:
"""Start a channel and log any exceptions."""