• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/calendar/helper.php
  • Класс: Bitrix\Crm\Integration\Calendar\Helper
  • Вызов: Helper::getConferenceChatId
public function getConferenceChatId(int $eventId): ?array
{
	$result = [];

	if (!$this->isAvailable())
	{
		return null;
	}

	/** @var EventLink $eventLink */
	$eventLink = self::getLinkFactory()->getEventLinkByEventId($eventId);
	if (!$eventLink)
	{
		return null;
	}

	$chatId = (new SharingConference($eventLink))->getConferenceChatId();
	if (!$chatId)
	{
		return null;
	}

	$result['chatId'] = $chatId;

	return $result;
}