• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/connector.php
  • Класс: BitrixImOpenLinesConnector
  • Вызов: Connector::onReceivedStatusDelivery
static function onReceivedStatusDelivery(Event $event)
{
	$params = $event->getParameters();
	if (empty($params))
	{
		return false;
	}

	Log::write($params, 'CONNECTOR - STATUS DELIVERY');

	if (!Loader::includeModule('im'))
	{
		return false;
	}

	CIMMessageParam::Set($params['im']['message_id'], ['CONNECTOR_MID' => $params['message']['id'], 'SENDING' => 'N', 'SENDING_TS' => 0]);
	CIMMessageParam::SendPull($params['im']['message_id'], ['CONNECTOR_MID', 'SENDING', 'SENDING_TS']);

	return true;
}