Fix error
This commit is contained in:
parent
fed5683a7f
commit
45a91bc6d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue