telegram-markdown-formatter

JSON →
library 0.1.2 ·javascript
verified Jun 4, 2026

A TypeScript library that converts ChatGPT-style Markdown into HTML compatible with the Telegram Bot API. It supports bold, italic, underline, strikethrough, spoiler, headings, lists, links, inline code, code blocks with language hints, blockquotes, and expandable blockquotes. Version 0.1.2, works with Node >=18, includes a CLI tool, and can split long messages into Telegram-safe chunks (≤4096 characters). Originally a port of a Python module, it provides strong typing via TypeScript.