get_file_mime_type_sync


Description:

public Text get_file_mime_type_sync (string file_name) throws TDLibError

Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously

Parameters:

file_name

The name of the file or path to the file