• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Send/PushService.php
  • Класс: BitrixImV2MessageSendPushService
  • Вызов: PushService::sendPushNotificationFlash
public function sendPushNotificationFlash(NotifyChat $chat, Message $message, int $counter = 0): void
{
	if (!$this->isPullEnable())
	{
		return;
	}

	$toUserId = $chat->getAuthorId();

	$pullNotificationParams = $this->getFormatNotify($message, $counter);

	BitrixPullEvent::add(
		$toUserId,
		[
			'module_id' => 'im',
			'command' => 'notifyAdd',
			'params' => $pullNotificationParams,
			'extra' => BitrixImCommon::getPullExtra()
		]
	);
}