Class TdApi.CleanFileName

Enclosing class:
TdApi

public static class TdApi.CleanFileName extends TdApi.Function<TdApi.Text>
Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously.

Returns Text

  • Field Details

    • 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:
  • Constructor Details

    • CleanFileName

      public CleanFileName()
      Default constructor for a function, which removes potentially dangerous characters from the name of a file. 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. Returns an empty string on failure. Can be called synchronously.

      Returns Text

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