3namespace Bitrix\Im\V2\Entity\User;
5use Bitrix\Im\Integration\Socialnetwork\Extranet;
6use Bitrix\Im\V2\Chat\ChatError;
7use Bitrix\Im\V2\Entity\User\Data\BotData;
8use Bitrix\Im\V2\Result;
9use Bitrix\Imbot\Bot\CopilotChatBot;
10use Bitrix\Main\Loader;
14 private ?
BotData $botData =
null;
30 if (!static::$moduleManager::isModuleInstalled(
'intranet'))
40 if (Loader::includeModule(
'imbot') && $this->
getBotData()->
getCode() === CopilotChatBot::BOT_CODE)
55 if (static::$loader::includeModule(
'bitrix24'))
57 if (\CBitrix24::IsPortalAdmin($otherUser->
getId()) || \
Bitrix\Bitrix24\Integrator::isIntegrator($otherUser->
getId()))
91 $botData = $this->
getBotData()->toRestFormat();
92 $userData[
'botData'] = empty($botData) ? null : $botData;
99 if ($this->botData !==
null)
101 return $this->botData;
109 return UserType::BOT;
static getInstance(?int $id)
toRestFormat(array $option=[])
isOnlineDataFilled(bool $withStatus)
checkAccessInternal(User $otherUser)
fillOnlineData(bool $withStatus=false)
hasAccessBySocialNetwork(int $idOtherUser)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)