Closed Hima00007 closed 1 month ago
https://wppconnect.io/wa-js/functions/chat.sendListMessage.html
consult the documentation, you are passing the wrong values from the List assembly
thanks this is work
https://wppconnect.io/wa-js/functions/chat.sendListMessage.html
consult the documentation, you are passing the wrong values from the List assembly
// Send List menu const list = [ { title: "Pasta", rows: [ { title: "Ravioli Lasagna", description: "Made with layers of frozen cheese", } ] }, { title: "Dessert", rows: [ { title: "Baked Ricotta Cake", description: "Sweets pecan baklava rolls", }, { title: "Lemon Meringue Pie", description: "Pastry filled with lemonand meringue.", } ] } ];
await WAPI.sendListMenu('000000000000@c.us', 'Title', 'subTitle', 'Description', 'menu', list) .then((result) => { console.log('Result: ', result); //return object success }) .catch((erro) => { console.error('Error when sending: ', erro); //return object error });