Fixed HTML not being used in messages
This commit is contained in:
2
bot.py
2
bot.py
@@ -486,7 +486,7 @@ class MatrixBot:
|
|||||||
}
|
}
|
||||||
if is_html:
|
if is_html:
|
||||||
content["format"] = "org.matrix.custom.html"
|
content["format"] = "org.matrix.custom.html"
|
||||||
content["formatted_body"] = content["body"]
|
content["formatted_body"] = text_with_html
|
||||||
# try to send the message
|
# try to send the message
|
||||||
try:
|
try:
|
||||||
result = await self._client.room_send(
|
result = await self._client.room_send(
|
||||||
|
|||||||
Reference in New Issue
Block a user