• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/connectors/network.php
  • Класс: BitrixImConnectorConnectorsNetwork
  • Вызов: Network::processingInputBase
protected function processingInputBase($message, $line): Result
{
	$result = new Result();
	$userId = $this->getUserId($message['USER'], false);

	if (empty($userId))
	{
		$result->addError(new Error(
			'Failed to find user',
			'ERROR_IMCONNECTOR_FAILED_USER',
			__METHOD__,
			$message
		));
	}

	if ($result->isSuccess())
	{
		$result->setResult([
			'user' => $userId,
			'chat' => [
				'id' => $message['GUID']
			]
		]);
	}

	return $result;
}