add helper for sending m.notice

This commit is contained in:
saces 2026-02-13 23:32:14 +01:00
parent 6ddad07136
commit 4ad25be512

View file

@ -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)