Class ReactionMessage

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

public class ReactionMessage extends Object
The type Reaction message.
  • Constructor Details

    • ReactionMessage

      public ReactionMessage(String messageId, String emoji)
      Instantiates a new Reaction message.
      Parameters:
      messageId - required. The WhatsApp Message ID (wamid) of the message on which the reaction should appear. The reaction will not be sent if:
      • The message is older than 30 days
      • The message is a reaction message
      • The message has been deleted
      If the ID is of a message that has been deleted, the message will not be delivered.
      emoji - required. Emoji to appear on the message.
      • All emojis supported by Android and iOS devices are supported.
      • Rendered-emojis are supported.
      • If using emoji unicode values, values must be Java- or JavaScript-escape encoded.
      • Only one emoji can be sent in a reaction message
      • Use an empty string to remove a previously sent emoji.
    • ReactionMessage

      public ReactionMessage()
      Instantiates a new Reaction message.
  • Method Details

    • getMessageId

      public String getMessageId()
      Gets message id.
      Returns:
      the message id
    • setMessageId

      public ReactionMessage setMessageId(String messageId)
      Sets message id.
      Parameters:
      messageId - required. The WhatsApp Message ID (wamid) of the message on which the reaction should appear. The reaction will not be sent if:
      • The message is older than 30 days
      • The message is a reaction message
      • The message has been deleted
      If the ID is of a message that has been deleted, the message will not be delivered.
      Returns:
      ReactionMessage
    • getEmoji

      public String getEmoji()
      Gets emoji.
      Returns:
      the emoji
    • setEmoji

      public ReactionMessage setEmoji(String emoji)
      Sets emoji.
      Parameters:
      emoji - required. Emoji to appear on the message.
      • All emojis supported by Android and iOS devices are supported.
      • Rendered-emojis are supported.
      • If using emoji unicode values, values must be Java- or JavaScript-escape encoded.
      • Only one emoji can be sent in a reaction message
      • Use an empty string to remove a previously sent emoji.
      Returns:
      ReactionMessage