We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to send a Whatsapp MTM with parameters, it returns: "Invalid paramsThe value of one or more parameters is invalid."
The message should be sent.
An exception is being thrown.
The way that the parameters are being added to the $returnArray in the class TemplateObject is wrong. The parameters are wrapped in an extra array.
Currently:
"template": { "name": "namespace:name", "0": { "parameters": ["ABC"] } }
Should be:
"template": { "name": "namespace:name", "parameters": ["ABC"] }
Just try to send any message with any parameters:
$template = new TemplateObject('namespace:name', ['ABC']); $whatsAppText = new WhatsAppTemplate($to, $from, $template, 'pt-BR'); $client->messages()->send($whatsAppText);
The text was updated successfully, but these errors were encountered:
Vonage#322 fix parameters format
483c228
Fixed by #323 , thank you for your contribution!
Sorry, something went wrong.
Vonage#322 fix parameters format (Vonage#323)
ea5a1c6
SecondeJK
Successfully merging a pull request may close this issue.
When trying to send a Whatsapp MTM with parameters, it returns: "Invalid paramsThe value of one or more parameters is invalid."
Expected Behavior
The message should be sent.
Current Behavior
An exception is being thrown.
Possible Solution
The way that the parameters are being added to the $returnArray in the class TemplateObject is wrong. The parameters are wrapped in an extra array.
Currently:
Should be:
Steps to Reproduce (for bugs)
Just try to send any message with any parameters:
Your Environment
The text was updated successfully, but these errors were encountered: