Package com.whatsapp.api.domain.messages
Class ReactionMessage
java.lang.Object
com.whatsapp.api.domain.messages.ReactionMessage
The type Reaction message.
-
Constructor Summary
ConstructorDescriptionInstantiates a new Reaction message.ReactionMessage
(String messageId, String emoji) Instantiates a new Reaction message. -
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
Gets emoji.Gets message id.Sets emoji.setMessageId
(String messageId) Sets message id.
-
Constructor Details
-
ReactionMessage
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
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
Gets message id.- Returns:
- the message id
-
setMessageId
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
- Returns:
- ReactionMessage
-
getEmoji
Gets emoji.- Returns:
- the emoji
-
setEmoji
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
-