Send Buttons and sendListMenu breaks the Chat

See original GitHub issue

Description

When sending a message of type sendButtons or sendListMenu, the chat breaks and does not show any message.

Environment

  • Venom version(s): 4.3.3, 4.3.5,4.3.6
  • Browser: Chrome 87
  • OS: OSX 12.5.1
  • Node version: Node 16.18.0

Steps to Reproduce

  1. send any button message
  2. payload: { "phone": "xxxx", "title": "Bem vindo", "message": "xxxxxxx", "buttons": [ { "buttonId": "1", "buttonText": { "displayText": "xxxx" } }, { "buttonId": "2", "buttonText": { "displayText": "xxx" } }, { "buttonId": "3", "buttonText": { "displayText": "xxxxx" } } ] }

Your Code

await client.sendButtons(messageAttr.phone, data.title, data.buttons, data.message);

Additional context / Screenshot

image

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
etc-tiagocommented, Nov 24, 2022

@orkestral the docs says to use:

let buttons = [
   {
     "buttonId": "1",
     "buttonText": {
       "displayText": "Button 1"
       }
     },
   {
     "buttonId": "2",
     "buttonText": {
       "displayText": "Button 2"
       }
     }
   ]

but only work with (starting today):

let buttons = [
   {
     "id": "1",
     "text": "Button 1"
   },
   {
     "id": "2",
     "text": "Button 2"
     }
   ]
0reactions
orkestralcommented, Nov 26, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

[MD] Issues with Buttons and Lists #923 - GitHub
When Whatsapp-Web is opened visibly pointed at Headless, all messages disappear when a button message is sent as a reply, this does not ......
Read more >
Venom Bot: Open Source Javascript Library for Whatsapp
Send text, image, video, audio and docs, ✓ ; Get contacts, chats, groups, group members, Block List, ✓ ; Send contacts, ✓ ;...
Read more >
Interactive Messages - WhatsApp Business Platform On ...
This guide teaches you how to send each interactive message option. ... Reply Button Messages: Messages including up to 3 options —each option...
Read more >
How to change send button to 'enter' on WhatsApp - India Today
Launch WhatsApp on your Andriod phone. · Go to More options and tap on settings. · Then tap on Chats. · Turn Enter...
Read more >
Using WhatsApp buttons for more engaging customer ... - Twilio
The buttons are automatically appended to the message. Note that by default, we will prioritize sending Message Templates with buttons over an ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found