← Back to library

Telegram 原生 blockquote 渲染落地步骤

解决 Telegram 引用被“拍平”的可读性问题:将 markdown blockquote 转为原生 `<blockquote>` HTML 输出并回归测试。

GITHUBDiscovered 2026-02-13Author steipete
Prerequisites
  • Telegram channel output is configured in HTML mode and bot can send formatted text.
  • You can run formatter tests locally before deployment.
Steps
  1. Prepare markdown samples containing nested and multi-line blockquotes.
  2. Verify conversion pipeline preserves quote boundaries and maps them to Telegram `<blockquote>` spans.
  3. Run formatter tests and add regression cases for old flattening behavior.
  4. Send a canary message in Telegram and compare rendering on iOS/Android/Desktop clients.
Commands
pnpm test
openclaw gateway status
openclaw logs --local-time
Verify

Quoted content is shown as native Telegram blockquote instead of plain text lines.

Caveats
  • Some third-party Telegram clients may render HTML tags with slight visual differences(需验证)。
  • If channel escaping rules are custom-modified, test interactions with code/pre tags before rollout.
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post