Class Body

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

public class Body extends Object

An object with the body of the message.


The body object contains the following field:

  • text: Required if body is present - The content of the message. Emojis and markdown are supported. Maximum length: 1024 characters
  • Field Details

    • text

      public String text
      The Text.
  • Constructor Details

    • Body

      public Body()
  • Method Details

    • getText

      public String getText()
      Gets text.
      Returns:
      the text
    • setText

      public Body setText(String text)
      Sets text.
      Parameters:
      text - the text
      Returns:
      the text