-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
When sending a message with media (image/video/audio) via the message tool, the caption text is sent without parse_mode, so markdown formatting is not rendered.
Expected
Caption should support markdown formatting like regular text messages.
Actual
Caption is sent as plain text. Asterisks show literally instead of bold.
Location
dist/telegram/send.js - mediaParams object is missing:
parse_mode: 'HTML'- Caption should be converted via
markdownToTelegramHtml(caption)
Comparison
Text-only messages correctly use:
const textParams = {
parse_mode: 'HTML',
...
};
const htmlText = markdownToTelegramHtml(text);But media messages use:
const mediaParams = {
caption, // raw text, no conversion
// no parse_mode
};Fix
Add parse_mode: 'HTML' to mediaParams and convert caption with markdownToTelegramHtml().
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working