| mx_send | R Documentation |
Send a message to a room
mx_send(session, room_id, body, msgtype = "m.text", extra = NULL)
session |
An "mx_session" object. |
room_id |
Character. The room ID. |
body |
Character. The message body. |
msgtype |
Character. Matrix msgtype, default "m.text". |
extra |
List or NULL. Extra fields merged into the event content (e.g. formatted body, reply relation). |
The event ID of the sent message.
## Not run:
mx_send(s, "!abc:matrix.example", "hello world")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.