fix: make apiProxy injection optional

Resolves the optional apiProxy injection, keeps HTML as the compatibility default, synchronizes generated entrypoints, and adds a regression test.
This commit is contained in:
徐跃恒
2026-09-15 21:36:14 +08:00
committed by GitHub
parent 93f3bec975
commit 72e1d399a7
7 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ dsh plugin --profile web add D:\path\to\dsh-telegram-channel
| `allowAllUsers` | `true` 仅调试 |
| `maxMessageLength` | 默认 4096 |
| `pollingTimeoutSec` | 默认 30 |
| `rendering` | `rich`(默认,原生 Rich Message)或 `html`(旧 Markdown→HTML 兼容) |
| `rendering` | `html`(默认,兼容所有客户端)或 `rich`(原生 Rich Message) |
若本机用了 HTTP(S)_PROXY 访问 Telegram,插件会自动走代理(无需再设 `NODE_USE_ENV_PROXY`)。