-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for parameters on send_template #1
Comments
Hello @dardoguidobono Thanks for the suggestion, if I understood correctly its about Interactive Message Templates, ill work on that and update asap or you can create a pull request if you already have one. It should be available soon. |
currently i don't have it sorted yet, the 3rd parameter for send_template is optional D. |
I have just created a similar package with support for template components. Should we unify both projects and collaborate together? |
Yes Please ! |
how can we use variables in template ? |
Hi! any news about request? |
You can use it now like this Sample $tsap->sendTemplate('template_name', '6283xxxxxx', 'en_US', [ equivalent to $tsap->sendTemplate('template_name', '6283xxxxxx', 'en_US', [ |
https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates
add support for setting the header parameters
{ "messaging_product": "whatsapp", "to": "5XXXXXXXXXXX", "type": "template", "template": { "name": "test_template", "language": { "code": "es_MX" }, "components": [{ "type": "header", "parameters": [ { "type": "text","text": "111" } ] } ] } }
and body parameters like this
{ "messaging_product": "whatsapp", "to": "5XXXXXXXXXXX", "type": "template", "template": { "name": "prueba_confirmacion_turno", "language": { "code": "es_MX" }, "components": [{ "type": "body", "parameters": [ { "type": "text","text": "111" },{ "type": "text","text": "222" },{ "type": "text","text": "333" },{ "type": "text","text": "444" } ] } ] } }
The text was updated successfully, but these errors were encountered: