Skip to content

Commit

Permalink
add replying message sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
aalbarca authored Nov 19, 2023
1 parent 7c7f89c commit b8d6cbf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,21 @@ $whatsapp_cloud_api->sendButton(
);
```

### Replying messages

You can reply a previous sent message:

```php
<?php

$whatsapp_cloud_api
->replyTo('<whatsapp-message-id-to-reply>')
->sendTextMessage(
'34676104574',
'Hey there! I\'m using WhatsApp Cloud API. Visit https://www.netflie.es'
);
```

## Media messages
### Upload media resources
Media messages accept as identifiers an Internet URL pointing to a public resource (image, video, audio, etc.). When you try to send a media message from a URL you must instantiate the `LinkID` object.
Expand Down

0 comments on commit b8d6cbf

Please sign in to comment.