dsh plugins中文
← Back to popular plugin directory

Bot API bridge plug-in

LoserFox/telegram · tools

Telegram Bot API bridge plugin: long polling, per-chat sessions, HTML formatting

★ 7GitHub stars
1Forks
2026-08-13Last updated
TypeScriptLanguage
—License

Key features

  • The assistant text is converted according to a conservative subset of Markdown (fence code → , inline code → , bold → , and the rest HTML escaped), and fragmented according to maxMessageLength, giving priority to line breaks at newlines, Chinese periods, and periods + spaces.
  • When Telegram rejects the HTML body (the entity is incomplete after fragmentation), the fragment falls back to sending plain text.
  • turn/start sends typing chat action
  • Delivery is fire-and-forget, logging piece by piece.
  • A single long polling loop serves all chats

Requirements

  • Only text messages - photos, documents, voices, stickers and captions are ignored.
  • Private chat only - group chat @ mentions and topics (topics) are not processed.

Install command

dsh plugin --profile web add github:LoserFox/telegram
View GitHub repository ↗Back to popular plugin directory