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
- Prepare markdown samples containing nested and multi-line blockquotes.
- Verify conversion pipeline preserves quote boundaries and maps them to Telegram `<blockquote>` spans.
- Run formatter tests and add regression cases for old flattening behavior.
- Send a canary message in Telegram and compare rendering on iOS/Android/Desktop clients.
Commands
pnpm testopenclaw gateway statusopenclaw logs --local-timeVerify
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 ↗