From 4ad25be512379d190810ee43dd9269a9eded6560 Mon Sep 17 00:00:00 2001 From: saces Date: Fri, 13 Feb 2026 23:32:14 +0100 Subject: [PATCH] add helper for sending m.notice --- smal/src/smal/bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/smal/src/smal/bot.py b/smal/src/smal/bot.py index 5fb4d8f..c4f085b 100644 --- a/smal/src/smal/bot.py +++ b/smal/src/smal/bot.py @@ -48,3 +48,12 @@ class SMALBot(SMALApp): data["content"]["m.relates_to"]["m.in_reply_to"]["event_id"] = msgid self._sendmessage(data) + + def sendnotice(self, roomid, text): + data = {} + data["roomid"] = roomid + data["content"] = {} + data["content"]["body"] = text + data["content"]["msgtype"] = "m.notice" + + self._sendmessage(data)