• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_chat.php
  • Класс: CIMChat
  • Вызов: CIMChat::GetUserCount
static function GetUserCount($chatId)
{
	$result = BitrixImModelChatTable::getList(
		[
			'select' => ['USER_COUNT'],
			'filter' => ['=ID' => $chatId]
		]
	)->fetch();

	if (!$result)
	{
		return false;
	}

	return (int)$result['USER_COUNT'];
}