• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/secretary.php
  • Класс: BitrixIntranetSecretary
  • Вызов: Secretary::addUserToChat
static function addUserToChat($chatId, $userId, $hideHistory = null): void
{
	if (!self::checkAccessForIm())
	{
		throw new BitrixMainSystemException('update chat: failed to load modules');
	}

	$chat = new CIMChat(0);
	$chat->AddUser($chatId, $userId, $hideHistory);
}