From c63643dde8f2b60ac0f7b07c29810e1028e2d245 Mon Sep 17 00:00:00 2001 From: Alireza <5110480+silverbios@users.noreply.github.com> Date: Sat, 10 Feb 2024 21:01:42 +0330 Subject: [PATCH] Update Example URL --- notify_matrix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify_matrix.sh b/notify_matrix.sh index 0dfd38e..b000db8 100644 --- a/notify_matrix.sh +++ b/notify_matrix.sh @@ -21,7 +21,7 @@ send_notification() { MatrixServer="Enter Your HomeServer URL" MsgBody="{\"msgtype\":\"m.text\",\"body\":\"$MessageBody\"}" - # URL Example: https://matrix.org/_matrix/client/r0/rooms/!xxxxxx:example.com/send/m.room.message/?access_token=xxxxxxxx + # URL Example: https://matrix.org/_matrix/client/r0/rooms/!xxxxxx:example.com/send/m.room.message?access_token=xxxxxxxx curl -sS -o /dev/null --fail -X PUT "$MatrixServer/_matrix/client/r0/rooms/$Room_id/send/m.room.message?access_token=$AccessToken" -H 'Content-Type: application/json' -d "$MsgBody"