Interface GetFileMimeType

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

interface GetFileMimeType {
    @type: "getFileMimeType";
    file_name: string;
}

Properties

Properties

@type: "getFileMimeType"
file_name: string

The name of the file or path to the file.