5.5.2 • Published 10 months ago

whatsapp-lp v5.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

WhatsApp-LP was created with the purpose of demonopolizing the automation of chatbots and e-commerce, allowing anyone to create one.

Installation:

$ npm install whatsapp-lp

Using bower:

$ bower install whatsapp-lp

Using yarn:

$ yarn add whatsapp-lp

Using pnpm:

$ pnpm add whatsapp-lp

Basic Usage:

const whatsapp = require('whatsapp-lp');

whatsapp.create({
    session: 'whatsapp-lp', // Name of session
    headless: false,
    logQR: true,
})
    .then((client) => {
        start(client);
    });

async function start(client) {

    client.onMessage(async (message) => {
        if (message.content === "!ping") {
            // Reply
            await client.reply(message.from, `Pong! 🏓`, message.id)

            // Send Text
            await client.sendText(message.from, `Pong! 🏓`);
        }
    });

}

Using the WhatsApp-LP methods, it is possible to create a handler for text commands, images, audios, stickers, among others, these codes will be available on our GitHub.

5.5.2

10 months ago

5.5.1

10 months ago

5.5.0

10 months ago

5.4.7

10 months ago

5.4.5

10 months ago

5.4.4

10 months ago

5.4.3

10 months ago

5.4.2

10 months ago

5.4.1

10 months ago

5.4.0

10 months ago

5.3.9

10 months ago

5.3.8

10 months ago

5.3.7

10 months ago

5.3.6

10 months ago

5.3.5

10 months ago

5.3.4

10 months ago

5.3.3

10 months ago

5.3.2

10 months ago

5.3.1

10 months ago

5.2.1

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

5.1.1

10 months ago

5.1.0

10 months ago