• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Controller/Chat/Pin.php
  • Класс: BitrixImV2ControllerChatPin
  • Вызов: Pin::countAction
public function countAction(Chat $chat): ?array
{
	return [
		'counter' => (new PinService())->getCount($chat->getChatId(), $chat->getStartId())
	];
}