Class TdApi.GetFileMimeType

  • Enclosing class:
    TdApi

    public static class TdApi.GetFileMimeType
    extends TdApi.Function
    Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously.

    Returns Text

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String fileName
      The name of the file or path to the file.
    • Constructor Summary

      Constructors 
      Constructor Description
      GetFileMimeType()
      Default constructor.
      GetFileMimeType​(java.lang.String fileName)
      Constructor for initialization of all fields.
    • Field Detail

      • fileName

        public java.lang.String fileName
        The name of the file 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

      • GetFileMimeType

        public GetFileMimeType()
        Default constructor.
      • GetFileMimeType

        public GetFileMimeType​(java.lang.String fileName)
        Constructor for initialization of all fields.
        Parameters:
        fileName - The name of the file or path to the file.