TDLib v0.0.2 TDLib.Method.GetFileExtension View Source

Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. This is an offline method. May be called before authorization. Can be called synchronously. Returns object_ptr.

NameTypeDescription
mime_typestringThe MIME type of the file.

More details on telegram’s documentation.