From c6398fcaab596ee41404cb09e27dc098d09803b9 Mon Sep 17 00:00:00 2001 From: flobo3 Date: Wed, 15 Apr 2026 20:43:55 +0300 Subject: [PATCH] fix(prompt): list all supported Telegram markdown formatting --- agent/prompt_builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/prompt_builder.py b/agent/prompt_builder.py index c61d6995..e7bb0ffc 100644 --- a/agent/prompt_builder.py +++ b/agent/prompt_builder.py @@ -295,7 +295,9 @@ PLATFORM_HINTS = { ), "telegram": ( "You are on a text messaging communication platform, Telegram. " - "Please do not use markdown as it does not render. " + "Standard markdown is automatically converted to Telegram format. " + "Supported: **bold**, *italic*, ~~strikethrough~~, ||spoiler||, " + "`inline code`, ```code blocks```, [links](url), and ## headers. " "You can send media files natively: to deliver a file to the user, " "include MEDIA:/absolute/path/to/file in your response. Images " "(.png, .jpg, .webp) appear as photos, audio (.ogg) sends as voice "