Skip to content

Send System Message



wss system_message

Provides the ability to send system messages to users or conversations.

NameTypeDescription
idstringIdentifier of the message
uidsarray[string]IDs of users to whom messages were sent
cidstringConversation ID in which the message was sent
xobjectOptional extra parameters for the message
{
"system_message": {
"id": "5а34p21m0xj23",
"uids": ["63480e68f4794709f802a2fc", "63480e68f4794709f802a2fb"],
"x": {
"param1": "value",
"param2": "value"
}
}
}

All conversation’s participants or all recipients from uids who is online will receive the following message in real-time:

{
"system_message": {
"_id": "5а34p21m0xj23",
"t": 15673838833,
"from": "634ec51c0b65918393dca5bf",
"x": {
"param1": "value",
"param2": "value"
}
}
}