View Source ExTDLib.Method.GetFileMimeType (ExTDLib v0.0.4)

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

NameTypeDescription
file_namestringThe name of the file or path to the file.

More details on telegram's documentation.