From ce9c157b72368c58f181dfd91dea4f40c76cb562 Mon Sep 17 00:00:00 2001 From: Nikita Tyukalov Date: Fri, 21 Aug 2026 07:27:26 +0300 Subject: [PATCH] Fixed HTML not being used in messages --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 728f6a9..08fb7a2 100644 --- a/bot.py +++ b/bot.py @@ -486,7 +486,7 @@ class MatrixBot: } if is_html: content["format"] = "org.matrix.custom.html" - content["formatted_body"] = content["body"] + content["formatted_body"] = text_with_html # try to send the message try: result = await self._client.room_send(