S
S
serik2021-07-22 14:35:59
Bitrix24
serik, 2021-07-22 14:35:59

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);
}


Ideally, of course, I wanted to get the result as in the screenshot, but even just the system text will be enough, but the main thing is that only the operator sees:
60f9584cef87d864105802.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question