• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat/GeneralChat.php
  • Класс: BitrixImV2ChatGeneralChat
  • Вызов: GeneralChat::linkGeneralChat
static function linkGeneralChat(?int $chatId = null): bool
{
	if (!$chatId)
	{
		$chatId = self::getGeneralChatId();
	}

	if (!$chatId)
	{
		return false;
	}

	if (Loader::includeModule('pull'))
	{
		CPullStack::AddShared([
			'module_id' => 'im',
			'command' => 'generalChatId',
			'params' => [
				'id' => $chatId
			],
			'extra' => BitrixImCommon::getPullExtra()
		]);
	}

	return true;
}