• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/viewed.php
  • Класс: BitrixTasksInternalsTaskViewedTable
  • Вызов: ViewedTable::sendPushTaskView
static function sendPushTaskView(int $userId, int $taskId): void
{
	PushService::addEvent([$userId], [
		'module_id' => 'tasks',
		'command' => PushCommand::TASK_VIEWED,
		'params' => [
			'TASK_ID' => $taskId,
			'USER_ID' => $userId,
		],
	]);
}