Class TdApi.GetFileExtension

  • Enclosing class:
    TdApi

    public static class TdApi.GetFileExtension
    extends TdApi.Function
    Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

    Returns Text

    • Field Detail

      • mimeType

        public String mimeType
        The MIME type of the file.
      • CONSTRUCTOR

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

      • GetFileExtension

        public GetFileExtension()
        Default constructor for a function, which returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

        Returns Text

      • GetFileExtension

        public GetFileExtension​(String mimeType)
        Creates a function, which returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.

        Returns Text

        Parameters:
        mimeType - The MIME type of the file.