New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

dsh-connect-telegram

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-connect-telegram

Telegram channel adapter for dsh-connect: getUpdates long-polling intake, message normalization, streaming replies, and interactive choice prompts

latest
Source
npmnpm
Version
0.7.2
Version published
Maintainers
1
Created
Source

dsh-connect-telegram

English | 中文

Telegram channel adapter for dsh-connect: brings DeepSeek Harness agents into Telegram with the same capabilities as the Feishu adapter — bidirectional conversation, streaming typewriter-style replies, interactive choice prompts, image/file intake, and completion cards.

  • Transport: official Telegram Bot API via getUpdates long polling (no webhook / no public IP needed).
  • Bidirectional: private chats and groups; group replies require @-mention (configurable).
  • Streaming replies: long answers are edited in place on one message (typewriter feel).
  • Interactive choices: ask_user_question / menu prompts render as inline-keyboard buttons; tapping answers the question.
  • Media: photos, documents, voice, video and audio are downloaded and staged into the workdir automatically.
  • Zero runtime HTTP dependency: built on the global fetch (Node ≥ 18 / ≥ 20).

Install

dsh plugin --profile web add dsh-connect dsh-connect-telegram

Configure

Create a bot with @BotFather and copy the token. Append to the profile's cordis.patch.yml. The plugin registers itself via its bundle manifest, so only override its config — do not insert it again (duplicate ids crash dsh at boot):

- id: connect-telegram
  name: dsh-connect-telegram
  config:
    botToken: "123456:ABC-YourBotToken"
    requireMention: true   # groups must @-mention the bot (default true)
    language: zh           # zh | en

The token may also come from the TELEGRAM_BOT_TOKEN environment variable.

How it works

Telegram user ──getUpdates(long poll)──► dsh-connect-telegram ──InboundMessage──► dsh-connect (agent)
Telegram user ◄──sendMessage / editMessageText ◄────── dsh-connect (replies)

All user-facing strings are localized (zh/en) through the core's i18n layer; per-chat language, notification levels, /menu, /progress watchdog and every other core feature work the same as Feishu.

Configuration reference

KeyDefaultDescription
botTokenenv TELEGRAM_BOT_TOKENBotFather token
requireMentiontrueGroups: require @-mention or a reply to the bot
languagezhUser-facing message language
pollingTimeoutSeconds50getUpdates long-poll timeout
baseUrlBot API base URL override (local Bot API server)

Keywords

dsh

FAQs

Package last updated on 28 Aug 2026

Related posts