• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/User/UserBot.php
  • Класс: BitrixImV2EntityUserUserBot
  • Вызов: UserBot::getBotData
protected function getBotData($id): array
{
	$cache = $this->getSavedCache($id);
	$cachedBot = $cache->getVars();

	if ($cachedBot !== false)
	{
		return $cachedBot;
	}

	$botData = $this->getBotDataFromDb($id);
	if ($botData === null)
	{
		return [];
	}

	$this->saveInCache($cache, $botData);

	return $botData;
}