Skip to content

Base para bot de whatsapp usando a livraria OpenWa

Notifications You must be signed in to change notification settings

DarkBBR/Base-Bot-OpenWa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base-Bot-OpenWa

Base para bot de whatsapp usando a livraria OpenWa: open-wa/wa-automate-nodejs

Comandos:

  • Figurinha
  • Coletar
  • Enquete

Tipo de conexão:

  • Qr-Code

Código Base da própria OpenWa:

const wa = require('@open-wa/wa-automate');

wa.create({
  sessionId: "COVID_HELPER",
  multiDevice: true, //required to enable multiDevice support
  authTimeout: 60, //wait only 60 seconds to get a connection with the host account device
  blockCrashLogs: true,
  disableSpins: true,
  headless: true,
  hostNotificationLang: 'PT_BR',
  logConsole: false,
  popup: true,
  qrTimeout: 0, //0 means it will wait forever for you to scan the qr code
}).then(client => start(client));

function start(client) {
  client.onMessage(async message => {
    if (message.body === 'Hi') {
      await client.sendText(message.from, '👋 Hello!');
    }
  });
}

About

Base para bot de whatsapp usando a livraria OpenWa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published