sendCommand
Less than 1 minute
sendCommand
Description: Send a text message to a user.
The command is used only in 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- a unique user identifier (TrueConf ID) to whom the command should be sent. It is recommended to use those obtained from the methods: newParticipantInConference, getConferenceParticipants. Applicability:PeerId - not supported
CallId - not supported
InstanceId - supported
command— Message text.requestId- a unique request identifier. You can find more details about it here.
See also: