# sendCommand
Description
Send a text message to a user.
The command is used only in video calls and conferences. Unlike sendMessage the message will not be displayed in the chat.
void sendCommand(string peerId, string cmd)
Parameters
Name | Description |
---|---|
peerId | unique identifier of the user (TrueConf ID) to whom the command should be sent. |
cmd | Message text. |
Response example
{
"method" : "sendCommand",
"requestId" : "1",
"result" : true
}
Response Parameters
Name | Description |
---|---|
requestId | A unique request identifier |
result | A flag indicating whether the request was successful |
See also