From 7f4b7084bdab4d5fe721b3f35cecd97dafb3267a Mon Sep 17 00:00:00 2001 From: Humungus14 Date: Sun, 31 Jul 2022 15:17:53 +0300 Subject: [PATCH] Update api.py fix: display html in emote add required parameter from paragraph 11.2.1.1 of specification: https://spec.matrix.org/v1.3/client-server-api/#device --- matrix_client/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matrix_client/api.py b/matrix_client/api.py index aae52f99..10e15bb0 100644 --- a/matrix_client/api.py +++ b/matrix_client/api.py @@ -675,8 +675,10 @@ def get_text_body(self, text, msgtype="m.text"): def get_emote_body(self, text): return { - "msgtype": "m.emote", - "body": text + "format": "org.matrix.custom.html", + "body": text, + "formatted_body": text, + "msgtype": "m.emote" } def get_filter(self, user_id, filter_id):