Skip to content

telegram

⭐ 7 · ✅ active · integration · ⬆️ +1 recently

Type integration Category Channels
Stars ⭐ 7 Status ✅ active
Author LoserFox Updated 2026-08-13

One-liner

Telegram Bot API 桥接插件:长轮询、per-chat 会话、HTML 格式化

About

dsh --profile web --dump-config | grep telegram - 插入行 id:telegram(cordis.patch.yml);不声明模型面工具或技能——它是把 Telegram 聊天桥接到 agent 会话的后台服务插件。 - 加载即需要 token:缺少 bot token(配置 token 或环境变量 DSH_TELEGRAM_TOKEN)时 apply 直接报错;没有 token 不会惰性启动。 - 宿主前置条件:dsh 组合必须挂载 agents 服务(@deepseek-ai/dsh-agent);LLM 适配器、会话与工具来自外围 cordis.yml(见 telegram-agent 示例)。 - 卸载:dsh plugin --profile web remove telegram。 - 安装后需重启目标 profile 的 DSH 进程(组合层变更不参与 HMR 热更新)。

📦 Install

# 从本仓库 checkout 安装到 profile(web / headless 等),bundle 声明自动加入组合层
dsh plugin --profile web add <dir|git-url>
# 验证
dsh --profile web --dump-config | grep telegram

📚 Learn more

配置

缺少 token 时加载即报错(fail loud)。未配置白名单时 bot 拒绝所有用户(fail closed)。TelegramConfig 还接受仅运行时使用的 client 与 sleep 接缝供测试使用;生产环境使用全局 fetch 与真实定时器。所有错误经 ctx.logger 记录且 bot token 被脱敏。