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(