libtd-ktx / kotlinx.telegram.coroutines / getFileExtension
getFileExtension
suspend fun TelegramFlow.getFileExtension(mimeType: String?): Text
Suspend function, which returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously.
Parameters
mimeType - The MIME type of the file.
Return Text Contains some text.