Skip to content
New issue

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

Button is not working #6

Closed
harshadkanziya-in opened this issue Jun 11, 2022 · 1 comment
Closed

Button is not working #6

harshadkanziya-in opened this issue Jun 11, 2022 · 1 comment

Comments

@harshadkanziya-in
Copy link

I have use same example code. if I have send message with button then not working.
if I have remove button then send message

let embed = new WwebjsSender.MessageEmbed()
.sizeEmbed(28)
.setTitle("✅ | Successful process!")
.setDescription("The process has been successful!")
.addField("✔", "To confirm")
.addField("❌", "To cancel")
.addFields({
name: "Now you have 2 buttons to choose!",
value: "✔ or ❌",
})
.setFooter("WwebjsSender")
.setTimestamp();

    let button1 = new WwebjsSender.MessageButton()
        .setCustomId("confirm")
        .setLabel("✔");

    let button2 = new WwebjsSender.MessageButton()
        .setCustomId("cancel")
        .setLabel("❌");

    WwebjsSender.send({
        client: client,
        number: from,
        embed: embed,
        button: [button1, button2],
    }); 
@xXDeathAbyssXx
Copy link
Owner

For now whatsapp-web.js can't send buttons yet, we need to wait...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants