A Telegram bot that automatically detects Mermaid diagram syntax in group conversations and renders them as beautiful images.
MerGram monitors group messages for Mermaid code blocks and automatically triggers rendering without user input.
High-speed rendering powered by the mermaid.ink service. Delivers crisp PNG diagrams directly in your chat flow.
We don't store your messages. Diagrams are processed via mermaid.ink; ensure your diagram data doesn't contain sensitive information.
Technical teams often share architecture designs, but recipients have to copy-paste code into a browser. MerGram removes this friction.
Discuss architecture without leaving your Telegram app.
Flowcharts, Sequence, Gantt, Class diagrams and more.
Add the bot to your group and give it permission to read messages. It will automatically catch
any message containing ```mermaid blocks.
Use the /mermaid command for quick
rendering. Perfect for one-off diagrams or private chats with the bot.
docker run -e TELEGRAM__TOKEN=your_token_here ghcr.io/capcom6/mergram-tg-bot:latest
Step 1: Clone
git clone https://github.com/capcom6/mergram-tg-bot.git
Step 2: Install & Run
make deps make air