Send Message
- Print
- DarkLight
- PDF
Send Message
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Send a message to a room.
Method | Requires Auth |
---|---|
| Yes |
Payload parameters
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The message object. |
The message
object contains the following properties:
|
| The message ID. |
|
| The room ID where the message should be sent. |
|
| The message content to be sent. |
Example call
{
"msg": "method",
"method": "sendMessage",
"id": "423",
"params": [
{
"_id": "8gMsLe9A7pZjo2D2iB",
"rid": "64a1f373376181965ab77f54",
"msg": "Hello World!"
}
]
}
Example response
{
"msg": "result",
"id": "423",
"result": {
"_id": "8gMsLe9A7pZjo2D2iB",
"rid": "64a1f373376181965ab77f54",
"msg": "Hello World!",
"ts": {
"$date": 1688421337724
},
"u": {
"_id": "LFdhbcNHx5zsMA7T4",
"username": "test.rc",
"name": "Test RC"
},
"_updatedAt": {
"$date": 1688421337830
},
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "Hello World!"
}
]
}
]
}
}
To send a file, use the Upload File to a Room endpoint.
Was this article helpful?