-
Notifications
You must be signed in to change notification settings - Fork 11
clean file name
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / 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.
fileName
- File name or path to the file.
Return Text Contains some text.