Module tdlight.api

Class TdApi.GetFileMimeType

Enclosing class:
TdApi

public static final class TdApi.GetFileMimeType extends TdApi.Function<TdApi.Text>
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. Returns Text
  • Field Details

    • fileName

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

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetFileMimeType

      public GetFileMimeType()
      Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. Returns Text
    • GetFileMimeType

      public GetFileMimeType(String fileName)
      Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. Returns Text
      Parameters:
      fileName - String The name of the file or path to the file.
    • GetFileMimeType

      public GetFileMimeType(DataInput input) throws IOException
      Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously. Returns Text
      Throws:
      IOException
  • Method Details