Class TdApi.CleanFileName

  • Enclosing class:
    TdApi

    public static class TdApi.CleanFileName
    extends TdApi.Function
    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 Text

    • Field Detail

      • fileName

        public String fileName
        File name or path to the file.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CleanFileName

        public CleanFileName()
        Default constructor for a 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. Can be called synchronously.

        Returns Text

      • CleanFileName

        public CleanFileName​(String fileName)
        Creates a 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. Can be called synchronously.

        Returns Text

        Parameters:
        fileName - File name or path to the file.