Skip to content

Commit 225db97

Browse files
authored
Merge pull request #1 from alexOAppS/added-sender-in-webhook-reaction-params
added from param in reaction prop when parsing webhook from whatsapp
2 parents 1c53972 + 6cec65a commit 225db97

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/whatsapp/api/domain/webhook/Reaction.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
* The type Reaction.
77
*
88
* @param emoji The emoji used for the reaction.
9-
* @param messageId Specifies the wamid of the message received that contained the reaction.
9+
* @param messageId Specifies the wamid of the message received that contained
10+
* the reaction.
11+
* @param from Specifies the id of the sender who reacted for the message.
1012
*/
1113
public record Reaction(
1214

1315
@JsonProperty("emoji") String emoji,
1416

15-
@JsonProperty("message_id") String messageId
17+
@JsonProperty("message_id") String messageId,
18+
19+
@JsonProperty("from") String from
1620

1721
) {
1822
}

0 commit comments

Comments
 (0)