#3793·AionUi

Telegram channel replies do not consistently render Markdown formatting

Author: supicccCreated Jul 30, 2026Updated Sep 20, 2026
Labelsneeds-triage

Description

Telegram channel replies from AionUI do not consistently render Markdown formatting. In practice, assistant responses that contain Markdown are displayed in Telegram as raw Markdown/plain text instead of formatted text.

I noticed there was a previous fix for this area in #1978 / #1214, but the issue is still reproducible on a current WebUI deployment.

Environment

  • Platform: Linux server, WebUI mode
  • AionUI version: 2.1.43
  • AionCore version: 0.1.54
  • Channel: Telegram Bot channel
  • Access mode: remote WebUI connected to Telegram bot

Steps to Reproduce

  1. Configure and enable the Telegram channel in AionUI WebUI.
  2. Bind the Telegram channel to an assistant/agent.
  3. Send a Telegram message that causes the agent to return Markdown content, for example:
    • headings
    • bold text
    • code blocks
    • bullet lists
    • links
  4. Check the bot reply in Telegram.

Expected Behavior

Telegram should render the response formatting correctly, for example:

  • **bold** should appear as bold text.
  • fenced code blocks should appear as code/preformatted blocks.
  • Markdown links/lists/headings should be converted to Telegram-compatible formatting where possible.

Actual Behavior

The Telegram bot reply can show raw Markdown syntax instead of rendered formatting. This makes longer agent responses and Markdown documents difficult to read in Telegram.

Notes / Possible Cause

From the deployed AionCore binary, the Telegram channel appears to use the built-in Rust channel plugin:

  • aionui_channel::plugins::telegram
  • Telegram Bot API endpoints such as /sendMessage and /editMessageText

The binary contains parse_mode and HTML, but not MarkdownV2, so it looks like the intended behavior may be Markdown-to-Telegram-HTML conversion. However, the actual Telegram reply path still appears to bypass or inconsistently apply that conversion in some cases.

Possible areas to check:

  • Whether both sendMessage and editMessageText paths apply the same Telegram-specific formatter.
  • Whether streaming/final relay updates use the same formatting pipeline.
  • Whether Markdown-to-Telegram-HTML conversion handles common Markdown document structures, including fenced code blocks, headings, bullet lists, and links.
  • Whether formatting failures silently fall back to plain text.

Related prior work:

  • #1214
  • #1978

Impact

Telegram is useful for remote access to AionUI agents, but without reliable Markdown rendering, agent responses and generated documents are hard to read compared with the WebUI rendering.