From 24564bfc4eec5cd33a2d18979dbece16800f5485 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 28 Feb 2022 08:45:16 +0000 Subject: [PATCH] Switched to sending standard text Signed-off-by: Marcus Noble --- nexmo.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nexmo.go b/nexmo.go index fea0375..8cd9e47 100644 --- a/nexmo.go +++ b/nexmo.go @@ -5,8 +5,6 @@ import ( "github.com/gofiber/fiber/v2" "maunium.net/go/mautrix" - "maunium.net/go/mautrix/event" - "maunium.net/go/mautrix/format" "maunium.net/go/mautrix/id" ) @@ -31,11 +29,7 @@ New Message from: %s fmt.Println(msg) - _, err := matrixClient.SendMessageEvent( - id.RoomID(getRoom(*defaultRoom)), - event.EventMessage, - format.RenderMarkdown(msg, true, true), - ) + _, err := matrixClient.SendText(id.RoomID(getRoom("!pCzzyaOZfCrorkdgOR:matrix.cluster.fun")), msg) if err != nil { fmt.Println("Failed sending to Matrix", err) if httpErr, ok := err.(mautrix.HTTPError); ok {