证据快照复核于 2026-09-16GitHub 数据核对日期: 2026-08-21
证据已验证Plugin Bundle集成与连接Web Profile

dsh-telegram-channel

把 Telegram 用作 DeepSeek Harness Web 实时会话的手机遥控器。

快速了解

它能做什么

把 Telegram 用作 DeepSeek Harness Web 实时会话的手机遥控器。

本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。

使用场景
集成与连接消息会话管理模型路由
适配技术
deepseek-harnesstelegram
兼容性

Web Profile
Not declared in supplied evidence

可信度与状态

证据已验证
核对日期 2026/9/15 UTC 13:48

有代码证据的贡献

它为 DSH 增加什么

Telegram 会话遥控器

将 Telegram 聊天绑定到正在运行的 DeepSeek Harness Web 会话,让手机与桌面沿同一对话轨迹协作。

机制证据

选择前先看

这个 DSH 插件允许白名单中的 Telegram 用户浏览工作区和未归档会话,将手机聊天绑定到一个正在运行的 Web 会话,并在手机或桌面沿同一条对话轨迹继续交流。它还提供会话状态、上一轮问答、手动压缩和下一轮生效的模型切换。

适合谁

已在本机运行 dsh web,并希望通过 Telegram 续接现有 Web 会话的 DeepSeek Harness 用户。

常见任务

  • 通过 /sessions 附着到当前工作区会话,并在手机上继续同一段对话。
  • 使用 /last 查看已绑定会话的上一轮问答,或为下一轮切换模型。
  • 从 Telegram 发送受支持的文本和图片,同时以 Web 会话为事实来源。

权限与数据

使用 Bot Token 和用户白名单,将本地 DSH Web 会话连接到 Telegram。

权限
  • Telegram Bot Token
  • 数字 Telegram 用户 ID 白名单
  • 通过 web profile 访问本地 DeepSeek Harness Web 会话
数据处理
  • 文本和受支持的图片消息会被送入已绑定会话。
  • 图片会通过宿主附件服务持久化,README 表示其与 Web 上传使用同一通道。
外部服务
  • Telegram Bot API
  • 用于访问 Telegram 的可选本地 HTTP(S) 代理
凭据
  • DSH_TELEGRAM_TOKEN
  • DSH_TELEGRAM_ALLOWED_USER_IDS

局限

  • 需要可正常运行的本地 dsh web 环境以及 Node.js >=22。
  • 手机会话列表会排除已归档、空白和子代理会话。
  • 不支持语音、视频及其他文件类型。
  • 当所选模型不支持图像输入时,图片可能被拒绝。
  • 提供的证据未声明 DeepSeek Harness 版本范围。

DSHub 已核对

  • 包清单声明了 DSH bundle patch、Node.js >=22 和 DeepSeek Harness peer dependencies。
  • 不可变 Git Bundle 的结构和 patch 已验证。
  • README 记录了 Telegram 会话绑定、白名单配置和支持的命令。

DSHub 未核对

  • 本次审核未实际执行安装、Telegram 连通性、会话同步或运行时行为。
  • 提供的分发证据中未找到对应的 npm 包版本。

固定版本安装

安装 dsh-telegram-channel

这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。

访问源码项目

维护者原文

项目 README

查看 commit 2e9a307 对应的 README
维护者编写的上游内容原文于 2026/9/15README.md 获取,正文和仓库相对媒体固定到 commit 2e9a3070e3ef,内容哈希为 8b30d51a3e65。以下是未经 DSHub 翻译的上游原文,语言可能与当前页面不同;第三方托管的 badge 可能独立更新。

dsh-telegram-channel

English · 中文

dsh-telegram-channel flow: Desktop → Phone attach → Same trajectory

Telegram 手机遥控器 for DeepSeek Harness:附着本机正在跑的 Web 会话,与电脑 同轨迹、双向可见(Codex-style)。

发现: dsh-plugin topic · 安装:dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel

Keywords: Telegram · Bot · Mobile · Remote · DSH · Cordis · dsh-plugin · sessions · bind


中文

使用前需要什么

需要 说明
DeepSeek Harness(dsh 本机已能跑通 dsh web
Node.js 跟 Harness 走,建议 ≥22
Telegram Bot Token @BotFather/newbot
数字 User ID @userinfobot
代理(可选) 若直连不上 api.telegram.org,需本机 HTTP(S)_PROXY

不需要 Python。


30 秒理解

  1. 电脑 dsh web 开着(会话列表与 Web 对齐,已归档除外)
  2. 手机 Bot:/sessions工作区会话 → 附着
  3. 之后手机 ↔ Web 走同一条轨迹;可用 /model 切换模型(下一回合生效)

支持的消息:文本、图片(照片或以文件形式发送的 png/jpeg/webp/gif,可带文字说明;多张相册照片合并为一条消息进入会话)。语音/视频/其他文件暂不支持(会收到提示)。图片经宿主附件服务持久化,与 Web 端上传走同一通道;当前模型不支持图像输入时会收到明确提示。

效果截图

手机选择会话并发问:

手机 Telegram:选择会话并对话

电脑 Web 同步收到同一条消息与回复:

电脑 DSH Web:同轨迹同步


一键管理菜单(推荐)

先准备两样东西:

准备 怎么拿
Bot Token Telegram 搜 @BotFather/newbot → 复制 token
数字 User ID @userinfobot → Start → 复制纯数字

Token 不要发到公开群;泄露了去 BotFather /revoke

Windows

请在 PowerShell 执行。若当前是 CMD,用下面「CMD 一键」那行。

irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex

脚本已兼容 irm | iex(菜单逻辑包在 scriptblock 里)。CMD 请用下面整行。

CMD 一键:

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex"

备用(先下载再执行):

powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -UseBasicParsing https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 -OutFile $env:TEMP\dsh-tg.ps1; & $env:TEMP\dsh-tg.ps1"

启动后用数字选择:

1) 安装 / 重装插件(写入 Token + 白名单)
2) 启动 dsh web(新窗口)
3) 停止 dsh web
4) 查看状态
5) 打开浏览器
0) 退出

也可直接指定动作(不进菜单):

.\scripts\install.ps1 -Action install -Token '...' -UserId '123456789'
.\scripts\install.ps1 -Action start
.\scripts\install.ps1 -Action stop
.\scripts\install.ps1 -Action status

安装时脚本会:写环境变量、补 allowBuilds、执行 dsh plugin add不会再 insert 同名 id)。

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.sh | bash
# 同样出现数字菜单;或:
# ./scripts/install.sh install --token '...' --user-id '...'
# ./scripts/install.sh start|stop|status

手机怎么用

  1. 菜单选 2 启动 dsh web(或自己运行 dsh web
  2. 浏览器里可看到工作区与会话(归档会话不会出现在手机列表)
  3. 手机对 Bot:/start/sessions → 选工作区 → 选会话 → 聊天
  4. 需要换模型时:/model → 点选(与 Web 同 API,下一回合生效)
  5. 续接上下文:附着后点 查看上次对话,或发 /last

输入框旁的 / 菜单应有:start sessions last model status compact unbind help

命令 作用
/sessions 先列工作区,再列该工作区会话(与 Web 对齐,排除归档/空白/子代理);冷会话附着时会自动 resume
/last 查看绑定会话的上次问答(附着后也会出现「查看上次对话」按钮)
/model 切换当前绑定会话的模型
/status 通用状态显示:绑定会话/会话 ID/工作区/当前模型/思考强度/上下文长度/首 token 平均/输出速率/输入输出 tokens(与 Web 底部统计条同源)
/compact 手动压缩当前绑定会话的历史(缩短上下文;会话需空闲,压缩期间新消息排队)
/unbind 只断开手机,不关电脑会话
/help 帮助

手工安装(可选)

若不想跑脚本:

# 用户环境变量(或当前会话 $env:...)
# DSH_TELEGRAM_TOKEN = BotFather token
# DSH_TELEGRAM_ALLOWED_USER_IDS = 数字ID

dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel
dsh web

本地目录安装:

dsh plugin --profile web add D:\path\to\dsh-telegram-channel

需要改 YAML 白名单时,只能按 id 覆盖,不要再 insert 同名 id:

- id: dsh-telegram-channel
  config:
    token: ""
    allowedUserIds: [123456789]

示例:examples/telegram-agent/cordis.patch.example.yml


配置

键 / 环境变量 含义
token / DSH_TELEGRAM_TOKEN Bot token
allowedUserIds / DSH_TELEGRAM_ALLOWED_USER_IDS 白名单;都空 = 谁都不能用
allowAllUsers true 仅调试
maxMessageLength 默认 4096
pollingTimeoutSec 默认 30
rendering html(默认,兼容所有客户端)或 rich(原生 Rich Message)

若本机用了 HTTP(S)_PROXY 访问 Telegram,插件会自动走代理(无需再设 NODE_USE_ENV_PROXY)。


故障排查

现象 处理
ERR_PNPM_IGNORED_BUILDS / allowBuilds pnpm 11 起: dsh-telegram-channel: true 不够(git 包无效)。在 ~\.dsh\profiles\web\pnpm-workspace.yaml 写入仓库级授权后重装:<br>'dsh-telegram-channel@git+https://github.com/hi-wenw/dsh-telegram-channel.git': true<br>再跑菜单 1(新版安装脚本会自动写)
duplicate loader entry id: dsh-telegram-channel 用户 patch 不要 insert 同名 id;用上面的 - id: 覆盖,或只用环境变量白名单
手机完全没回复 / ConnectTimeout 打开本地代理(如 7890),重启 dsh web
missing bot token 检查环境变量;新开终端dsh web
「无权限」 User ID 必须是 @userinfobot 的数字
/sessions 无会话 确认 Web 有未归档会话;空白会话会被隐藏
/sessions 比电脑少很多 升级到 ≥0.3.0:应按工作区列出;仍少则检查是否归档
/model 不可用 dsh web(apiProxy);先 /sessions 绑定。≥0.3.2 已修复「未 inject 读不到 apiProxy」
Telegram 401 Token 错了或被 revoke

开发

git clone https://github.com/hi-wenw/dsh-telegram-channel.git
cd dsh-telegram-channel
npm install --legacy-peer-deps
npm test
npm run build

发布与发现(社区插件)

社区发现入口主要是 GitHub topic,不是封闭应用商店审核:

  1. 仓库 公开package.json 声明 dsh.bundle.patch(本仓库已有)
  2. About → Topics 加上 dsh-plugin(已加;可浏览 topic 列表
  3. 用户安装:
dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel
  1. 可选:收录到 awesome-deepseek-harness 等精选列表;可选再发 npm

官方也建议插件作者使用 dsh-plugin topic 方便检索。

许可证

MIT


English

Prerequisites

  • Working DeepSeek Harness (dsh web)
  • Node.js (typically ≥22 with Harness)
  • Telegram bot token + numeric user id
  • Optional HTTP(S)_PROXY if Telegram API is blocked
  • No Python required

What this is

Telegram mobile remote for DeepSeek Harness Web sessions. Desktop/Web is the source of truth; the phone attaches (no parallel hidden agent). /sessions is workspace → session (Web-aligned, archived excluded). /model switches the bound session’s model for the next turn.

Screenshots

Phone: pick a session and chat:

Telegram mobile remote

Desktop Web shows the same trajectory:

DSH Web synced

One-click manager (Windows)

Run in PowerShell (not CMD). Opens a number menu: install / start / stop / status / open browser.

irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex

CMD:

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex"

Direct actions:

.\scripts\install.ps1 -Action start
.\scripts\install.ps1 -Action stop
.\scripts\install.ps1 -Action install -Token '...' -UserId '123456789'

The script sets user env vars, ensures allowBuilds, and runs dsh plugin add. After start, phone: /sessions → workspace → session → bind; optional /model.

Unix

export DSH_TELEGRAM_TOKEN='...'
export DSH_TELEGRAM_ALLOWED_USER_IDS='123456789'
curl -fsSL https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.sh | bash

Manual

dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel

Allowlist via DSH_TELEGRAM_ALLOWED_USER_IDS (preferred) or id-targeted YAML override — never re-insert the same plugin id.

Discoverability

Listed under the public GitHub topic dsh-plugin. Install:

dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel

License

MIT

有意识地管理

安装与管理

前置条件与目标 Profile

目标 Web Profile

交付方式 Git Bundle — hi-wenw/dsh-telegram-channel#2e9a3070e3efbb4a379947839e85dad1389b0e2b

验证、更新与移除

显示生命周期命令
验证
dsh plugin --profile web list

兼容性与访问范围

DeepSeek Harness Web profile; Node.js >=22 declared Not declared in supplied evidence

检查兼容性证据

风险事实

凭据

Requires a Telegram bot token and numeric allowed-user IDs; protect and rotate a leaked token through BotFather.

证据
remote-session-access

Authorized Telegram users can attach to configured local Web sessions and send supported text or image messages into them.

证据
证据与编辑审查Manifest、Bundle patch、分发与新鲜度

不可变证据

审查状态与源码活动

AI 已审查

请使用固定提交的 Git Bundle 源。在启动 dsh web 前配置严格的用户白名单;除调试外不要启用 allowAllUsers。

AI 审查于 2026/9/15 UTC 13:49GitHub 事实核对日期: 2026/9/15 UTC 13:49

自当前证据基线以来,没有记录到重要源码变化。

下一步

按 Plugin 安装流程操作

订阅重要变化: dsh-telegram-channel