SendMatrix
Sends a message to a given room. The user needs to be part of that room already.
Example:
{
"type": "SendMatrix",
"options": {
"homeserver": "matrix.org",
"username": "testuser",
"token": "syt_AHAuYW1pA2Rac2NvamRkamVzZaVc_bXaMfbXzzbIvtXKlealN_2jtbs8",
"deviceId": "ZDBLQAQLJH",
"database": "/etc/gokill/matrix.db",
"roomId": "!Balrthajskensaw:matrix.org",
"message": "attention, intruders got my device!",
"testMessage": "this is just a test, no worries"
}
}
Options:
homeserver
homeserver address.
Type: string
Default: ""
username
username (localpart, wihout homeserver address)
Type: string
Default: ""
password
password in clear text
Type: string
Default: ""
token
access token in clear text
Type: string
Default: ""
deviceId
A device id. Example: ZDBLQAQLJH
Type: string
Default: ""
database
path to database file, will be created if not existing. this is necessary to sync keys for encryption.
Type: string
Default: ""
roomId
Type: string
Default: ""
message
actual message that should be sent
Type: string
Default: ""
testMessage
message sent during test run
Type: string
Default: ""