Class Message

java.lang.Object
com.whatsapp.api.domain.messages.Message

public class Message extends Object
To send a message, you must first assemble a message object with the content you want to send.
See Also:
  • Method Details

    • getMessagingProduct

      public String getMessagingProduct()
      Gets messaging product.
      Returns:
      the messaging product
    • getRecipientType

      public String getRecipientType()
      Gets recipient type.
      Returns:
      the recipient type
    • getContext

      public Context getContext()
      Gets context.
      Returns:
      the context
    • getInteractiveMessage

      public InteractiveMessage getInteractiveMessage()
      Gets interactive message.
      Returns:
      the interactive message
    • getTo

      public String getTo()
      Gets to.
      Returns:
      the to
    • getType

      public MessageType getType()
      Gets type.
      Returns:
      the type
    • getTextMessage

      public TextMessage getTextMessage()
      Gets text message.
      Returns:
      the text message
    • getContactMessage

      public List<Contact> getContactMessage()
      Gets contact message.
      Returns:
      the contact message
    • getTemplateMessage

      public TemplateMessage getTemplateMessage()
      Gets template message.
      Returns:
      the template message
    • getAudioMessage

      public AudioMessage getAudioMessage()
      Gets audio message.
      Returns:
      the audio message
    • getDocumentMessage

      public DocumentMessage getDocumentMessage()
      Gets document message.
      Returns:
      the document message
    • getImageMessage

      public ImageMessage getImageMessage()
      Gets image message.
      Returns:
      the image message
    • getStickerMessage

      public StickerMessage getStickerMessage()
      Gets sticker message.
      Returns:
      the sticker message
    • getVideoMessage

      public VideoMessage getVideoMessage()
      Gets video message.
      Returns:
      the video message
    • getReactionMessage

      public ReactionMessage getReactionMessage()
      Gets reaction message.
      Returns:
      the reaction message
    • getLocationMessage

      public LocationMessage getLocationMessage()
      Gets location message.
      Returns:
      the location message