Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda