You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: Unable to Send Button and List Messages
Description:
I am encountering an issue where button and list messages fail to send using venom-bot. Below are the details of the code I used and the logs generated during the operation.
Code Example
constvenom=require("venom-bot");asyncfunctionstart(){constclient=awaitvenom.create("Xiryuu-Bot",undefined,(statusSession,session)=>{console.log("Status Session:",statusSession);console.log("Session name:",session);},{multidevice: true,folderNameToken: "tokens",mkdirFolderToken: "",});client.onMessage(async(message)=>{constprefixs=[".","!","?","\\","/"];if(prefixs.some((prefix)=>message.body.startsWith(prefix))){constcommand=message.body.split(" ")[0].slice(1);switch(command){case"button": {constbuttons=[{buttonText: {displayText: "Google",},},{buttonText: {displayText: "Youtube",},},];awaitclient.sendButtons(message.from,"Contoh Button","Silakan pilih:",buttons).then((result)=>console.log("Result: ",result)).catch((error)=>console.error("Error:",error));break;}case"list": {constlist=[{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 lemon and meringue.",},],},];awaitclient.sendListMenu(message.from,"Menu List","Select an item","Available Items","Select",list).then((result)=>console.log("Result: ",result)).catch((error)=>console.error("Error when sending: ",error));break;}}}});}start();
you know if it makes a difference if the WhatsApp account is a WhatsApp business account or not?
Umm... I set up the bot on WhatsApp, but I'm seeing the results on WhatsApp Business. I've tried to check it on WhatsApp, but it still hasn't appeared.
Bug Report: Unable to Send Button and List Messages
Description:
I am encountering an issue where button and list messages fail to send using
venom-bot
. Below are the details of the code I used and the logs generated during the operation.Code Example
Logs
List Message Log
Button Message Log
Expected Behavior
buttonText
anddisplayText
.Actual Behavior
ERROR_UNKNOWN
.Environment
v5.3.0
v18.19.1
linux mint
Steps to Reproduce
venom-bot
..button
or.list
commands.Additional Notes
Please let me know if additional details are required. Thank you!
The text was updated successfully, but these errors were encountered: