From 7e839240da5518cd04f344027606fcf4aa80f781 Mon Sep 17 00:00:00 2001 From: owo <17620121969@163.com> Date: Fri, 14 Aug 2026 17:46:15 +0800 Subject: [PATCH] docs: point example folder at one-click installer Co-authored-by: Cursor --- examples/telegram-agent/README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/examples/telegram-agent/README.md b/examples/telegram-agent/README.md index bfa2f10..eb6895b 100644 --- a/examples/telegram-agent/README.md +++ b/examples/telegram-agent/README.md @@ -2,27 +2,29 @@ Attach Telegram to **live** DSH Web sessions (same trajectory). -## Install +## Recommended: one-click + +See root [README](../../README.md#一键安装推荐): ```powershell -dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel +irm https://raw.githubusercontent.com/hi-wenw/dsh-telegram-channel/master/scripts/install.ps1 | iex ``` -Local: +Or from a clone: ```powershell -dsh plugin --profile web add D:\gitData\dsh-telegram-channel +..\..\scripts\install.ps1 -Token '...' -UserId '123456789' ``` -## Config - -1. Open a conversation in `dsh web` first. -2. Set token: +## Manual ```powershell $env:DSH_TELEGRAM_TOKEN = '123456:ABC...' +$env:DSH_TELEGRAM_ALLOWED_USER_IDS = '123456789' +dsh plugin --profile web add github:hi-wenw/dsh-telegram-channel ``` -3. Merge [`cordis.patch.example.yml`](cordis.patch.example.yml) (replace user id). -4. Reload profile. -5. Phone: `/sessions` → bind → chat. `/unbind` to disconnect. +Optional YAML allowlist (id override only — do **not** re-insert): +[`cordis.patch.example.yml`](cordis.patch.example.yml) + +Then: `dsh web` → open a Web chat → phone `/sessions` → bind. `/unbind` disconnects phone only.