Skip to content

Instantly share code, notes, and snippets.

Last active September 29, 2023 21:11
  • Star 16 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
room=<room id>
accesstoken=<access token>
curl -XPOST -d "$( jq -Rsc --arg msgtype "$msgtype" '{$msgtype, body:.}')" "https://$homeserver/_matrix/client/r0/rooms/$room/send/$accesstoken"
Copy link

how can we quote a message from other user? basically how to reply to a message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment