• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Import/ImportService.php
  • Класс: BitrixImV2ImportImportService
  • Вызов: ImportService::__construct
public function __construct(array $chat, ?int $userId = null, ?ImportSendingService $sendingService = null)
{
	$this->chat = $chat;
	if (isset($userId))
	{
		$this->userId = $userId;
	}
	if (isset($sendingService))
	{
		$this->sendingService = $sendingService;
	}
	else
	{
		$this->sendingService = new ImportSendingService($chat);
	}
}