#How to create buttons?

23 messages · Page 1 of 1 (latest)

minor atlas
#

Install this pr for buttons
npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

#

const buttons_reply = new Buttons('body', [{body: 'hi', id: 'hi'}
], 'title' , 'footer')

minor atlas
#

Did you install the pr?

gleaming garden
sweet sleet
#

🤦🤦🤦

#

Wait till the session is ready

#

client.on("ready", () => {
// put your code here
});

sweet sleet
#

Show me your package.json

gleaming garden
#

I don't have onee bro

gleaming garden
#

It is not created on its own

vale lark
#

npm init

chilly token
#

this is true?

gleaming garden
tulip brook
chilly token
#

Excuse me. Yes it is true. This is working using that branch fix-buttons-list (npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list). Thanks a lot!

#

But lists still dont work at least on Whatsapp Business account

vale lark
#

Yes lists do not work on business accounts

chilly token
#

@vale lark yep. thanks

hushed vine
#

I never used button list, just curious button list not working to sender business account or receiver business account?