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
using the nodejs library i expect that when i do the following :
const list_picker : TwilioListPicker = { body: "bodyText", button: "buttonText", items: [{ id : "1", item : "item_name", description : "item_descr" }] }
await client.messages.create({ contentSid : message.templateId, from : message.from, to : message.to, contentVariables : JSON.stringify(list_picker), });
this will provide a series of options to the whatsapp user, however this does not an we are met with validation errors
what does work is this:
const list_picker : TwilioListPicker = { body: "bodyText", button: "buttonText", id : "1", item : "item_name", description : "item_descr" }
which then is valid...
so this means we cannot send an array of items, but only a single one.
//works const list_picker : TwilioListPicker = { body: "bodyText", button: "buttonText", id : "1", item : "item_name", description : "item_descr" } await client.messages.create({ contentSid : message.templateId, from : message.from, to : message.to, contentVariables : JSON.stringify(list_picker), }); //doesnt work const list_picker : TwilioListPicker = { body: "bodyText", button: "buttonText", items: [{ id : "1", item : "item_name", description : "item_descr" }] } await client.messages.create({ contentSid : message.templateId, from : message.from, to : message.to, contentVariables : JSON.stringify(list_picker), });
(https://www.twilio.com/docs/api/errors/20422)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Summary
using the nodejs library i expect that when i do the following :
const list_picker : TwilioListPicker = {
body: "bodyText",
button: "buttonText",
items: [{
id : "1",
item : "item_name",
description : "item_descr"
}]
}
this will provide a series of options to the whatsapp user, however this does not an we are met with validation errors
what does work is this:
const list_picker : TwilioListPicker = {
body: "bodyText",
button: "buttonText",
id : "1",
item : "item_name",
description : "item_descr"
}
which then is valid...
so this means we cannot send an array of items, but only a single one.
Steps to Reproduce
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: