I use this code to get file in Nutgram:
$file = $bot->getFile($fileId); $uniqueFileName = uniqid(); $bot->downloadFile($file, 'reports');
How to get extension file and name?
I have tried to parse file_path.