# 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.
Request example:
{
"method" : "sendCommand",
"requestId" : "1",
"peerId" : "user@some.server/InstancePart",
"command" : "turn on"
}
Response example:
{
"method" : "sendCommand",
"requestId" : "1",
"result" : true
}
Parameter description:
peerId
- unique identifier of the user (TrueConf ID) who needs to be sent a command. It is recommended to use IDs obtained from the following methods: newParticipantInConference, getConferenceParticipants. Application:PeerId - not supported.
CallId - not supported
InstanceId - supported.
command
— Message text.requestId
- unique request identifier. More details can be found here
See also: