Answer the question
In order to leave comments, you need to log in
How to send a system message to an operator in a chat?
Hello! Tell me how can I send a system message to the operator in the live line chat?
I tried to use CIMChat::AddMessage, but it is displayed for all users, but for the operator, as if it were the user who sends it. And at the user as system.
if (CModule::IncludeModule('im'))
{
$ar = Array(
"TO_CHAT_ID" => 7584,
//"FROM_USER_ID" => 469,
"SYSTEM" => 'Y',
"MESSAGE" => "Системное сообщение", // Произвольный текст
);
CIMChat::AddMessage($ar);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question