Blue-2571/dsh-telegram-bot ↗★ 0
@blue/dsh-telegram-bot
DeepSeek Harness plugin: connect a Telegram bot to your dsh agent via long polling. One agent per chat, multi-turn context, whitelist access, and agent-preset mounting so the bot gets the same tools as a Web GUI session.
安装
$
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. |