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

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. Can be called synchronously. Returns object_ptr<Text>.

NameTypeDescription
file_namestringFile name or path to the file.

More details on telegram's documentation.