• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/model/chatindex.php
  • Класс: BitrixImOpenLinesModelChatIndexTable
  • Вызов: ChatIndexTable::getChatTitle
static function getChatTitle(int $chatId): string
{
	if (!Loader::includeModule('im'))
	{
		return '';
	}

	return BitrixImModelChatTable::query()->setSelect(['TITLE'])->where('ID', $chatId)->fetch()['TITLE'] ?? '';
}