Skip to content

Commit

Permalink
Merge pull request #154 from netflie/update-readme
Browse files Browse the repository at this point in the history
add replying message sample code
  • Loading branch information
aalbarca authored Nov 19, 2023
2 parents 7c7f89c + b8d6cbf commit 3d14b4e
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 3d14b4e

Please sign in to comment.