luzhengyangtx/dsh-telegram-duty

Telegram duty gateway: phone-message task loop on a dedicated duty session, global approval forwarding with inline approve/reject buttons, telegram_ask choice questions, duty/local toggle with a web duty banner, zh/en messages, zero idle tokens.

dsh-telegram-duty turns your phone into an always-on pocket duty office for DeepSeek Harness: message the bot and a dedicated 'duty' session runs the task, replying back to Telegram (long replies split under the message limit). Every message is acknowledged instantly and the phone keeps a typing indicator until the result arrives. /sessions lists workspace sessions with numbered buttons to route follow-ups (offline sessions wake automatically); /duty returns to the default route. In duty mode, approval requests from all sessions forward to the phone as Approve/Reject buttons and unanswered approvals fail closed after 10 minutes; /away and /unblock manage stuck turns. A telegram_ask tool pushes option-button questions to the phone, and telegram_notify lets any session's agent send you messages. Only the whitelisted chat id is served — other senders are logged and ignored.

Notifications & Integrations ★ 0 updated 2026-09-16
View on GitHub ↗

Install

dsh plugin --profile web add @luzhengyangtx/dsh-telegram-duty

npm @luzhengyangtx/dsh-telegram-duty 0.4.0 verified 2026-09-03 (repository field → github.com/luzhengyangtx/dsh-telegram-duty; README EN primary with 中文 edition). Install: dsh plugin --profile web add @luzhengyangtx/dsh-telegram-duty, then add a cordis.patch.yml row with your bot token + whitelisted chatId and restart dsh web. Setup takes ~10 minutes (BotFather + chat-id lookup).

Compatibility

DSH web profile; needs a Telegram bot token from @BotFather and your numeric chat id; long-polling getUpdates keeps idle cost at zero tokens.

Details

Recent updates

0.4.0 current on npm (verified 2026-09-03).

FAQ

Does it cost tokens while idle?
No — the plugin long-polls Telegram getUpdates and only wakes an agent session when a message actually arrives.
Can I approve tool calls from my phone?
Yes — in duty mode approval requests from all sessions arrive as Approve/Reject buttons; unanswered approvals time out to rejected after 10 minutes.
Who can talk to the bot?
Only the chat id you whitelist in the config; every other sender is logged and ignored.

Alternatives

gtaifu/dsh-wechat-bridge · ben7am1n/dsh-telegram

More plugins in Notifications & Integrations

Browse more in Notifications & Integrations

Guides for Notifications & Integrations plugins