From ae5d0c7800be514cb532c9878bf38424193f1784 Mon Sep 17 00:00:00 2001 From: groug Date: Mon, 11 Mar 2024 15:28:59 +0000 Subject: [PATCH] send_html fix --- phpmatrix.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpmatrix.php b/phpmatrix.php index fbb0972..78c4c3d 100644 --- a/phpmatrix.php +++ b/phpmatrix.php @@ -297,7 +297,9 @@ class MatrixRoom { $body = [ "body" => $html, - "msgtype" => "m.html" + "formatted_body" => $html, + "msgtype" => "m.text", + "format" => "org.matrix.custom.html", ]; return $this->client->send_room_event($this->room_id, "m.room.message", $body); }