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