Skip to content

Commit

Permalink
docs: updated example markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 11, 2024
1 parent db2946f commit 324beaf
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,55 @@ console.log(`Message sent successfully with UUID ${messageUUID}`);

## Vonage Messages Package

### WhatsAppReaction Class

Represents a reaction message for WhatsApp.


#### WhatsAppReaction

Sends a reaction message to a WhatsApp user.

Send a reaction

```ts
import { WhatsAppReaction } from '@vonage/messages';

const { messageUUID } = await messagesClient.send(new WhatsAppReaction({
to: TO_NUMBER,
from: FROM_NUMBER,
reaction: {
action: 'react',
emoji: '😍',
}
clientRef: 'my-personal-reference',
}));

console.log(`Message sent successfully with UUID ${messageUUID}`);
```




Remove reaction

```ts
import { WhatsAppReaction } from '@vonage/messages';

const { messageUUID } = await messagesClient.send(new WhatsAppReaction({
to: TO_NUMBER,
from: FROM_NUMBER,
reaction: {
action: 'unreact',
}
clientRef: 'my-personal-reference',
}));

console.log(`Message sent successfully with UUID ${messageUUID}`);
```

## Vonage Messages Package

### WhatsAppSticker Class

Represents a sticker message for WhatsApp.
Expand Down

0 comments on commit 324beaf

Please sign in to comment.