Answer the question
In order to leave comments, you need to log in
How to put notifications in Bitrix24?
I send messages to a group chat with the following code:
\Bitrix\Main\Loader::includeModule('im');
$message = Array
(
["FROM_USER_ID"] => $from_user_id
["TO_CHAT_ID"] => $to_chat_id
["MESSAGE"] => $mess
)
$CIMChat = new CIMChat();
$CIMChat->AddMessage($message);
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