Interface GetFileExtension

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

interface GetFileExtension {
    @type: "getFileExtension";
    mime_type: string;
}

Properties

Properties

@type: "getFileExtension"
mime_type: string

The MIME type of the file.