We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99e23b commit 3281984Copy full SHA for 3281984
examples/nextjs-page-router-example/src/lib/messageHandlers/reaction.ts
@@ -1,13 +1,10 @@
1
import type { WhatsApp } from 'meta-cloud-api';
2
-import { ReactionMessageBuilder } from 'meta-cloud-api/api/messages/builders';
3
4
/**
5
* Send a reaction to a message
6
* Can be used to react with emoji to any message
7
*/
8
export const sendReactionMessage = async (whatsapp: WhatsApp, to: string, messageId: string) => {
9
- const reactionMessage = new ReactionMessageBuilder().setMessageId(messageId).setEmoji('👍').build();
10
-
11
await whatsapp.messages.reaction({
12
to,
13
messageId,
0 commit comments