Reply to a button message by clicking a specific button
// Reply to the first button (Yes)await WPP.chat.replyToButtonMessage( '[number]@c.us', 'messageId', { buttonIndex: 0 });// Reply to the second button (No)await WPP.chat.replyToButtonMessage( '[number]@c.us', 'messageId', { buttonIndex: 1 }); Copy
// Reply to the first button (Yes)await WPP.chat.replyToButtonMessage( '[number]@c.us', 'messageId', { buttonIndex: 0 });// Reply to the second button (No)await WPP.chat.replyToButtonMessage( '[number]@c.us', 'messageId', { buttonIndex: 1 });
Reply to a button message by clicking a specific button