libtd-ktx / kotlinx.telegram.coroutines / cleanFileName
cleanFileName
suspend fun TelegramFlow.cleanFileName(fileName: String?): Text
Suspend function, which removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously.
Parameters
fileName - File name or path to the file.
Return Text Contains some text.