# 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) to whom the command should be sent. It is recommended to use those obtained from methods: newParticipantInConference, getConferenceParticipants. Applicability:PeerId - not supported
CallId - not supported
InstanceId - supported
command
— Message text.requestId
- a unique request identifier. You can learn more about it here.
See also: