Blue-2571/dsh-telegram-bot0

@blue/dsh-telegram-bot

将 Telegram 机器人连接至 DSH 智能体的插件,支持长轮询、多轮对话上下文、白名单访问及挂载预设工具。

AI 分析

核心用途是通过 Telegram 客户端远程使用 DSH 的完整工具链。适合习惯使用 Telegram 进行移动端 AI 交互的用户。需配置 Bot Token。

套件
@blue/dsh-telegram-bot
版本
0.1.0
授權
MIT
最近更新
2026年8月25日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Blue-2571/dsh-telegram-bot

Configuration

KeyDefaultDescription
enabledtrueMaster 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.timeoutSeconds50getUpdates long-poll timeout.
telegram.pollIntervalMs500Gap 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.maxMessageLength4000Max chars per outbound message.
agent.idleTimeoutMs1800000Idle time before a chat's agent is disposed (0 = never).
agent.instructionPrefix''Prefix prepended to every user message.