• Модуль: imbot
  • Путь к файлу: ~/bitrix/modules/imbot/lib/http.php
  • Класс: BitrixImBotHttp
  • Вызов: Http::detectPortalType
private function detectPortalType(): string
{
	if (defined('BX24_HOST_NAME'))
	{
		$type = self::TYPE_BITRIX24;
	}
	else
	{
		$type = self::TYPE_CP;
	}

	return $type;
}