• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Link/Task/TaskService.php
  • Класс: BitrixImV2LinkTaskTaskService
  • Вызов: TaskService::getFilesIdsForTaskFromMessage
protected function getFilesIdsForTaskFromMessage(Message $message): array
{
	$copies = $message->getFiles()->getCopies();
	$copies->addToTmp(TemporaryFileService::TASK_SOURCE);
	$newIds = [];

	foreach ($copies as $copy)
	{
		$newIds[] = FileUserType::NEW_FILE_PREFIX . $copy->getId();
	}

	return $newIds;
}