Modified msgtype of send_text & send_html methods

This commit is contained in:
Dylan Hackworth 2020-03-17 12:07:06 -05:00
parent 37301597d9
commit 91b2683d65
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -73,13 +73,13 @@ class Bot:
async def send_text(self, room, body):
msg = {
"body": body,
"msgtype": "m.text"
"msgtype": "m.notice"
}
await self.client.room_send(room.room_id, 'm.room.message', msg)
async def send_html(self, room, html, plaintext):
msg = {
"msgtype": "m.text",
"msgtype": "m.notice",
"format": "org.matrix.custom.html",
"formatted_body": html,
"body": plaintext