wppconnect-team / WPP4Delphi

WPP4Delphi is an open-source project with the aim of exporting functions from WhatsApp Web for Delphi, which can be used to support the creation of any interaction.
Apache License 2.0
201 stars 65 forks source link

sendListMenu not work #84

Closed Hima00007 closed 1 month ago

Hima00007 commented 2 months ago

// 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 });

marcelo386 commented 2 months ago

https://wppconnect.io/wa-js/functions/chat.sendListMessage.html

consult the documentation, you are passing the wrong values ​​from the List assembly

Hima00007 commented 2 months ago

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