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

201
Views
Los comandos de WhatsApp Bot no funcionaron cuando ejecuté

perdon por volver a preguntar

Estaba haciendo un comando en My WhatsApp Bots usando el módulo whatsapp-web.js, lo hice para que solo yo pueda ejecutar el comando

Cuando lo pruebo, simplemente no se ejecutó.

Ya leí la documentación e intenté usar if (chat.isMe) { y if (contact.isMe) { pero aún no tengo resultados.

¿Lo escribí mal?

El código:

 client.on('message', async msg => { if (msg.body == '.pin') { if (contact.isMe) { const chat = await msg.getChat(); await chat.pin(); msg.reply('This *chat* has been pinned by *Owner*.'); console.log('[CHAT_PINNED] You were pinned Chat or Group!'); } else { msg.reply('This *Owner!*'); } } });
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!