Pipedream can't parse entities starting with tag <br>

Hi, I’m trying to send a message to a telegram chat with pipedream, but seems like it can’t parse elements start with the break line tag
since it gave me this error:
ETELEGRAM: 400 Bad Request: can't parse entities: Unsupported start tag "br" at byte offset 38

Is it possible to fix ?

Hi @Brock

To pass HTML messages to Telegram, you can use the telegram.sendMessage action in a Pipedream workflow. Set the parse_mode parameter to “HTML” and include your HTML content in the text parameter. Here’s an example:

await require("[@pipedream](https://pipedream-users.slack.com/team/U014LD91C7Q)/platform").axios(this, {
url: `[https://api.telegram.org/bot${auths.telegram_bot_api.token}/sendMessage](https://api.telegram.org/bot$%7Bauths.telegram_bot_api.token%7D/sendMessage)`,
method: "POST",
data: {
chat_id: "your_chat_id",
text: "<b>Your HTML message</b>",
parse_mode: "HTML",
},
});

Replace your_chat_id with the appropriate chat ID and include your desired HTML content in the text parameter. Make sure you have connected your Telegram Bot API in Pipedream .For more information on sending messages with Telegram, refer to the Telegram Bot API documentation.

Yeah, I put in html mode. But seems like every items (like my steps.trigger.event.description) starting with
tag give an error like this:

Hi @Brock have you verified that Telegram’s HTML mode supports that specific type of tag?

How can I verify that? Anyway I tried also with IFTTT and it works with this other platform, so I assume it is supported

You can read the Telegram Bot API documentation to read about supported HTML tags in that parsing mode.

Alternatively, you can try a different mode like Markdown, in which <br> tags are simply just new lines.