Options or menu in Whatsapp-Web.js

I am currently working on creating an app using node.js with the goal of sending WhatsApp messages to my client list. To achieve this, I am utilizing WhatsApp-Web.js.

While I have successfully included media messages and text captions, I am encountering difficulties when attempting to add buttons or lists within the messages.

Despite thoroughly reviewing the guide and documentation provided by WhatsApp-Web.js, I have been unable to resolve this issue. There are no error messages being generated, but the buttons are simply not appearing for the users.

Can anyone offer a solution to this problem or recommend an alternative library that supports button functionality? Adding buttons is crucial for my messaging requirements.

Alternatively, should I consider switching to a different programming language altogether?

Answer №1

In the latest versions of libraries such as whatsapp-web.js and baileys, buttons have been marked as deprecated. Users are now advised to utilize the official WhatsApp API if they intend to incorporate buttons into their applications before these library owners address the issue.

For more insights from the creator of whatsapp-web.js, check out this link.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Electron: Interactive menu customization

Is there a way in Electron to dynamically enable/disable specific MenuItem in the context menu based on the element that the user right-clicks on? Additionally, I am looking for a method to identify the exact element clicked and pass that information to th ...

The command '. .' is not valid for running npm install with firebaseUI

I am facing an issue while trying to install npm packages on my firebaseUI demo application. After cloning the master branch from Github, I attempted to run "npm install" but encountered an error that is new to me with Node Package Manager. The error messa ...

Express server does not send any response body

When a request is made to my express application, it returns an empty {}. const express = require('express'); const bcrypt = require('bcrypt'); const bodyParser = require('body-parser'); const app = express(); app.use(bodyPar ...

Exploring the depths of Node.js, Express, and MySQL integration

Hey there! I'm currently working on integrating the express framework for node.js with the mysql module found at https://npmjs.org/package/mysql. My setup involves a basic application configured using the express command line tool and a dedicated modu ...

unable to submit form using angular and express

I am encountering an issue with a post request in AngularJS to express. The HTML form on the client side is defined as follows: <div ng-controller="LoginCtrl"> <form ng-submit="login()"> <div> <label>Username</lab ...

What is the method for retrieving a value from my Node.js module once it has been modified by an asynchronous function?

Apologies, but as a beginner developer, I'm struggling to see how this relates directly to the questions already mentioned. I have no understanding of ajax and I'm unsure how to adapt the solutions provided to my own situation. Currently, I&apos ...

The body function in Express-validator is not working as expected

Despite following the example provided in the documentation, I am facing difficulties getting express-validator to work properly. The error message "uncaughtException: body is not a function" is appearing, even though I am using express-validator version 5 ...

"Encountering an issue where the route function in Passport and ExpressJS is not being

When using passport for admin authentication, I am facing an issue where the redirect is not calling my function. Consequently, all that gets printed on login is [object Object] Here is my code: app.get('/admin', isLoggedIn, Routes.admin); ...

Encountered a "Permission Denied" message when attempting to create an Azure web application using

During my attempt to manually build an Azure web app on a Windows instance using Node JS and Express, I encountered an error message when running npm run start; node:events:505 throw er; // Unhandled 'error' event ^ Error: listen EACCES: per ...

Modify capital letters to dashed format in the ToJSON method in Nest JS

I am working with a method that looks like this: @Entity() export class Picklist extends BaseD2CEntity { @ApiHideProperty() @PrimaryGeneratedColumn() id: number; @Column({ name: 'picklist_name' }) @IsString() @ApiProperty({ type: Str ...

Accessing information from req.files in a TypeScript environment

I am currently using multer for uploading images. How can I retrieve a specific file from req.files? Trying to access it by index or fieldname has been unsuccessful. Even when I log it, I see that it's a normal array, so I suspect the issue may be rel ...

When using NestJs with TypeORM, encountering a "null value in column" error that violates a not-null constraint can occur when attempting to save data with

I am currently dealing with a problem when attempting to update multiple records at once. I am utilizing the save method of Repository for entity. According to the documentation, this is how the save method works: save - Saves a given entity or array of e ...

Is it possible to integrate the Firestore npm library into my Express application?

Recently, I created my own library to act as a nosql database on my node.js web server in place of mongodb. I came across this interesting quote: Applications that use Google's Server SDKs should not be used in end-user environments, such as on pho ...

The abrupt end of an HTTP connection occurs in a Node.js application deployed on Amazon EC2

I am currently running a REST API on Amazon EC2 using Node.js (Express). During a specific REST call, the client receives a reply of approximately 5MB. However, before the client can fully receive the reply, an error message is displayed: Premature end o ...

The persistent issue of the Mongo Connection repeatedly shutting down

A snippet from a console log: Attempted to GET data from http://localhost:5000/api/goals/, but encountered an error: connect ECONNREFUSED 127.0.0.1:5000. Here are the request headers: User-Agent: PostmanRuntime/7.29.0 Accept: / Postman-Token: 508773a0-790 ...

The Node.js Express error message displays an error in events.js at line 167 wherein an 'error' event is not being handled correctly

It seems like there is a syntax error in the bash_profile file on line 9. When trying to run the server using nodemon, an unexpected end of file error occurs. Nodemon is set to restart at any time and is currently watching for chan ...

I successfully coded a function without utilizing the function key, but unfortunately I am encountering difficulties when trying to output the

I have created a function without using the function keyword. The function should take the age above 15 and push it into an array. I have been able to do that, but I am struggling to print the result. Can anyone help me with this? my code <script> ...

Whenever a request is made, NodeJS seems to be unable to respond to subsequent requests in

I am having trouble sending a response after making a request to the API. Here is my code: app.post('/auth/login', (req, res, next) => { if (req.body.login && req.body.password) { var options = { method: 'POST&ap ...

The compilation of usernames of clients currently connected through socket io

After creating a chat client with various chat rooms using NodeJS, socketIO and Express, I am looking to show an updated list of all connected users in each room. Is there a way to link a username to an object so that I can easily access it like this: var ...

Why are Font Files causing permissions problems in my Openshift application?

Currently, I am in the process of working on a node.js project utilizing OpenShift. Everything is running smoothly except for the fact that I keep encountering a 404 error with my font awesome files. Upon SSHing into the system, I can see... ls app-deploy ...