CaptainPersia-66/dsh-telegram-bridge ↗★ 1
@local/dsh-telegram-bridge
Manage DeepSeek Harness sessions from Telegram: list, follow, prompt, review results, and answer approvals.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CaptainPersia-66/dsh-telegram-bridgeREADME
Read the full README ↗Configuration reference
All fields are optional. They live in the telegram-bridge row's config
(profile patch or bundle patch). Invalid values fall back to the default and are
reported as warnings in the Host log.
- id: telegram-bridge
name: "@local/dsh-telegram-bridge"
config:
tokenRef: TELEGRAM_BOT_TOKEN # credential reference; default TELEGRAM_BOT_TOKEN
botToken: null # direct token override (avoid in shared machines)
apiBaseUrl: https://api.telegram.org # local Bot API server / tests
allowedChatIds: [] # numeric chat ids; empty = pairing mode
allowedUserIds: [] # user ids allowed in any chat
dropPendingUpdates: true # ignore backlog on a fresh start
statePath: null # advanced: override the chat-state file
poll:
timeoutSeconds: 25
backoffMinMs: 1000
backoffMaxMs: 60000
notifications:
enabled: true
mode: current # default scope for new chats (current | all)
includeSubagents: false
onTurnEnd: true
onError: true
onApproval: true
onQuestion: true
onSessionStart: false
snippetChars: 0 # 0 = send the whole final message; >0 truncates
onlyTelegramOriginated: true # desktop turns stay quiet on Telegram
approvals:
mode: auto # auto | telegram | notify | off
timeoutMs: 120000
questions:
mode: auto # auto | telegram | notify | off
timeoutMs: 300000
limits:
pageSize: 8 # sessions per page
maxResultTurns: 5
maxTailTurns: 20
maxEventsPerRead: 1500
sessionTitleChars: 48
sessions:
includeSubagents: false # hide child-agent sessions from /sessions
includeArchived: false # hide archived sessions from /sessions
topics:
enabled: true # forum supergroup: one topic per session
autoCreate: true # open a topic when a session is selected in General
autoCreateOnNotify: true # give a session its topic on first notification too
syncArchive: true # close/reopen a topic when its session is archived
pinCard: true # pin the session card in its topic
controlName: DSH # dedicated control topic for /sessions and /new
titlePrefix: '' # optional prefix for created topic titles
titleChars: 48 # truncate the session title in topic names
pairing:
notice: true
cooldownMs: 600000
web:
includeUrl: true
voice:
enabled: true
language: null # null = recognizer auto (en, zh, ja, ko, …)
autoSend: true # send transcript as a prompt automatically
maxDurationSeconds: 300
maxDownloadBytes: 20971520
maxWavBytes: 4194304 # recognizer input cap (≈131 s of 16 kHz PCM16)
prepareTimeoutMs: 900000 # first-use model download window
totalTimeoutMs: 1200000
ffmpegPath: null # default: ffmpeg from PATH
deliverables:
enabled: true # forward produced media/documents to Telegram
maxBytes: 47185920 # Bot API upload ceiling headroom
extensions: [] # [] = built-in allow-list; or [mp4, png, …]
compression:
enabled: true # transcode oversized video/audio (ffmpeg)
timeoutMs: 600000
The state file defaults to $DSH_HOME/telegram-bridge/state.json and stores only
preferences: the update offset and each chat's selected session / notification
settings. Pending approvals and button-to-session caches are memory-only, so a
button older than a restart fails with "list expired" instead of acting on the
wrong row.