Blue-2571/dsh-telegram-bot ↗★ 0
@blue/dsh-telegram-bot
将 Telegram 机器人连接至 DSH 智能体的插件,支持长轮询、多轮对话上下文、白名单访问及挂载预设工具。
AI 分析
核心用途是通过 Telegram 客户端远程使用 DSH 的完整工具链。适合习惯使用 Telegram 进行移动端 AI 交互的用户。需配置 Bot Token。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Blue-2571/dsh-telegram-bot说明文档
阅读完整 README ↗Configuration
| Key | Default | Description |
|---|---|---|
enabled | true | Master switch. |
telegram.token | '' | Bot token from @BotFather. |
telegram.allowedUserIds | [] | Numeric user ids allowed to talk to the bot; empty = everyone. Set it in production. |
telegram.timeoutSeconds | 50 | getUpdates long-poll timeout. |
telegram.pollIntervalMs | 500 | Gap after a poll timeout/error. |
agent.cwd | '' | Working directory for agent sessions (defaults to dsh's cwd). |
agent.provider / agent.model | '' | Override model; empty = deployment default. |
agent.preset | '' | Agent preset id to mount for bot sessions ('' = deployment default). |
agent.maxMessageLength | 4000 | Max chars per outbound message. |
agent.idleTimeoutMs | 1800000 | Idle time before a chat's agent is disposed (0 = never). |
agent.instructionPrefix | '' | Prefix prepended to every user message. |