Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
How to detect in Whatsapp-web.js when a number is typing or when it has received a number link and has clicked it

I need to trigger an event when a person has received the link of a bot.This bot is going to send a specific message but the event has to be when the person clicks a link, because this library has events like when the it is ready, when it receives a message. Please let me understand how to use this library because I am new to using javascript libraries. Of course I already made the connection and it is recieving messages pretty well.

const { Client } = require('whatsapp-web.js');

const client = new Client();

 client.on('qr', (qr) => {
    // Generate and scan this code with your phone
    console.log('QR RECEIVED', qr);
   });

  client.on('ready', () => {
     console.log('Client is ready!');
  });

  client.on('message', msg => {
   if (msg.body == '!ping') {
    msg.reply('pong');
  }
  });

  client.initialize();
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!