docs: point example folder at one-click installer

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
owo
2026-08-14 17:46:15 +08:00
co-authored by Cursor
parent a83af2f33c
commit 7e839240da
+13 -11
View File
@@ -2,27 +2,29 @@
Attach Telegram to **live** DSH Web sessions (same trajectory). Attach Telegram to **live** DSH Web sessions (same trajectory).
## Install ## Recommended: one-click
See root [README](../../README.md#一键安装推荐):
```powershell ```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 ```powershell
dsh plugin --profile web add D:\gitData\dsh-telegram-channel ..\..\scripts\install.ps1 -Token '...' -UserId '123456789'
``` ```
## Config ## Manual
1. Open a conversation in `dsh web` first.
2. Set token:
```powershell ```powershell
$env:DSH_TELEGRAM_TOKEN = '123456:ABC...' $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). Optional YAML allowlist (id override only — do **not** re-insert):
4. Reload profile. [`cordis.patch.example.yml`](cordis.patch.example.yml)
5. Phone: `/sessions` → bind → chat. `/unbind` to disconnect.
Then: `dsh web` → open a Web chat → phone `/sessions` → bind. `/unbind` disconnects phone only.