Class TdApi.GetFileExtension

Enclosing class:
TdApi

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

Returns Text

  • Field Details

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

    • 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.
  • Method Details