{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Converts Markdown to Telegram plain text with MessageEntity pairs for direct Bot API use, supporting UTF-16 offset calculation, LaTeX-to-Unicode conversion, and optional Mermaid diagram rendering.","skillfed_tags":["telegram-bot","markdown-parser","llm-output"],"use_cases":["Send formatted LLM output (ChatGPT-like responses) to Telegram without worrying about escaping or parse_mode.","Convert GitHub READMEs or other Markdown documents to Telegram messages with proper formatting and entity offsets.","Stream token-by-token LLM responses with live draft updates or message edits in Telegram chats.","Split long Markdown automatically into multiple Telegram messages while preserving formatting and entity boundaries.","Render code blocks as file attachments and Mermaid diagrams as images alongside formatted text in a single flow."],"what_it_does":"Telegramify-markdown parses Markdown (including LLM output and GitHub READMEs) and produces (text, entities) tuples ready for the Telegram Bot API's MessageEntity parameter. It handles UTF-16 offset calculation automatically\u2014a requirement Telegram imposes\u2014eliminating the need for MarkdownV2 escaping and parse_mode parameters. The library is built on pyromark (Rust bindings to pulldown-cmark) for speed and correctness.\n\nThe package offers multiple output modes: convert() for static text, telegramify() for long documents with automatic splitting and code extraction, richify() for Telegram Bot API 10.1 structured Rich Messages, and streaming variants (DraftStream, EditStream) for token-by-token LLM output. It also supports LaTeX-to-Unicode conversion and optional Mermaid diagram rendering, making it suitable for complex formatted content in Telegram bots.","worth_installing":"Yes. Active maintenance, no vulnerabilities, low install friction, and a permissive license. Install if you build Telegram bots that send formatted text\u2014especially LLM output, documentation, or complex layouts. The library solves a real Telegram Bot API pain point (UTF-16 entity offsets) and offers both simple (convert) and advanced (streaming, Rich Messages) APIs."},"id":"telegramify-markdown","links":{"html":"https://skillfed.io/packages/telegramify-markdown","md":"https://skillfed.io/packages/telegramify-markdown.md","pypi":"https://pypi.org/project/telegramify-markdown/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-14","license_spdx":null,"license_treatment":"permissive","name":"telegramify-markdown","python_support":"supports_current","summary":"Convert Markdown to Telegram plain text + MessageEntity pairs"},"popularity":{"monthly_downloads":227807,"position":9165,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
