Fix error

This commit is contained in:
Benoit Marty
2024-06-11 15:39:05 +02:00
parent fed5683a7f
commit 45a91bc6d4

View File

@@ -397,7 +397,7 @@ else
transactionId=$(openssl rand -hex 16) transactionId=$(openssl rand -hex 16)
# Element Android internal # Element Android internal
matrixRoomId="!LiSLXinTDCsepePiYW:matrix.org" matrixRoomId="!LiSLXinTDCsepePiYW:matrix.org"
curl -X PUT --data "${\"msgtype\":\"m.text\",\"body\":\"${message}\"}" -H "Authorization: Bearer ${elementBotToken}" https://matrix-client.matrix.org/_matrix/client/r0/rooms/${matrixRoomId}/send/m.room.message/\$local."${transactionId}" curl -X PUT --data "{\"msgtype\":\"m.text\",\"body\":\"${message}\"}" -H "Authorization: Bearer ${elementBotToken}" https://matrix-client.matrix.org/_matrix/client/r0/rooms/${matrixRoomId}/send/m.room.message/\$local."${transactionId}"
else else
printf "Message not sent, please send it manually!\n" printf "Message not sent, please send it manually!\n"
fi fi