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

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

NameTypeDescription
mime_typestringThe MIME type of the file.

More details on telegram's documentation.