TDLib v0.0.2 TDLib.Method.GetFileMimeType View Source
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. May be called before authorization. Can be called synchronously.
Returns object_ptr
Name | Type | Description |
---|---|---|
file_name | string | The name of the file or path to the file. |
More details on telegram’s documentation.