tg-markdown-to-rich
Installation
SKILL.md
tg-markdown-to-rich
The converter uses Python 3 standard library only. Direct sending requires network access to
api.telegram.org and TELEGRAM_BOT_TOKEN.
Converts a Markdown file (or stdin) into a Telegram InputRichMessage JSON
object. The output uses the markdown field of InputRichMessage and is ready
to pass directly to sendRichMessage.
See also: ../tg-rich-messages/SKILL.md for
composing rich messages programmatically.
Usage
# File input → stdout JSON
python3 scripts/md2rich.py document.md