Interface CleanFileName

Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously. Request type for Tdjson#cleanFileName.

interface CleanFileName {
    @type: "cleanFileName";
    file_name: string;
}

Properties

Properties

@type: "cleanFileName"
file_name: string

File name or path to the file.