Community plugin

shaobeichen / dsh-im-telegram

Telegram 渠道适配器(dsh-im 插件家族):bot API polling 长连接,免公网;支持内联按钮审批卡片。

  • JavaScript
  • MIT
  • 2 stars
  • Aug 15, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-im-telegram is a DSH plugin published from the packages/im-telegram package in the shaobeichen/dsh-im-bridge repository.

  • Listing statusManifest verified
  • Manifest checkedNov 25, 2026
  • Packagedsh-im-telegram
  • Package pathpackages/im-telegram
  • Package version1.0.5
  • Source commitef7332e
  • Repository createdAug 14, 2026

Capabilities and topics

deepseek-harnessdshdsh-plugintelegram
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

dsh-im-telegram(Telegram 适配器)

Telegram 渠道适配器:Bot API polling 长连接(免公网、NAT 友好),内联按钮审批卡片,文件交付(/log)。

  • 依赖:inject: ['im'](需 dsh-im 核心)
  • 密钥:token: 'env:TELEGRAM_BOT_TOKEN'(找 @BotFather 创建 bot)
  • 测试:npm run test:telegram(8 个,本地假 Bot API 服务器,无需真实 token)

特性

  • polling getUpdates(long-poll,30s),指数退避重连(FR-1.5);401/409 致命错误停止并提示(token 冲突检测 C4)
  • 消息/按钮回调 → 统一模型;图片/文件自动下载到本地临时目录(FR-7.1 落盘)
  • 出站文本 + inline_keyboard 按钮(审批卡片);sendFile 以 document 交付
  • /status 可见连接状态与缺口(FR-9.3)

配置

- id: im-telegram
  name: 'dsh-im-telegram'
  config:
    token: 'env:TELEGRAM_BOT_TOKEN'
    mode: polling          # polling | webhook(webhook 需要公网 HTTPS + webhookUrl)

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/shaobeichen/dsh-im-bridge/packages/im-telegram)
dsh-im-telegram — DSH Plugin