Class DocumentMessage

java.lang.Object
com.whatsapp.api.domain.messages.MediaMessage<DocumentMessage>
com.whatsapp.api.domain.messages.DocumentMessage

public class DocumentMessage extends MediaMessage<DocumentMessage>
The type Document message.
  • Constructor Details

    • DocumentMessage

      public DocumentMessage()
  • Method Details

    • getCaption

      public String getCaption()
      Gets caption.
      Returns:
      the caption
    • setCaption

      public DocumentMessage setCaption(String caption)
      Sets caption.
      Parameters:
      caption - Optional. Describes the specified image, document, or video media. Do not use with audio or sticker media.
      Returns:
      the caption
    • getFileName

      public String getFileName()
      Gets file name.
      Returns:
      the file name
    • setFileName

      public DocumentMessage setFileName(String fileName)
      Sets file name.
      Parameters:
      fileName - Optional. Describes the filename for the specific document. Use only with document media. The extension of the filename will specify what format the document is displayed as in WhatsApp.
      Returns:
      the file name