* Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously.
13
*/
14
class GetFileMimeType extends TdFunction
15
{
16
public const TYPE_NAME = 'getFileMimeType';
17
18
/**
19
* The name of the file or path to the file.
20
*/
21
protected string $fileName;
22
23
public function __construct(string $fileName)
24
{
25
$this->fileName = $fileName;
26
}
27
28
public static function fromArray(array $array): GetFileMimeType