1.2.1 • Published 2 years ago

astro-ws-bot v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

WhatsappBot

What is this repository for?

Simple websocket to create bot!

how to get started

npm i astro-ws-bot

client.on('message', msg => {
    if (msg.body == ':hi') {
        msg.reply('hello');
    }
});

server receives following web socket actions

server sends following web socket actions

Capabilities

loadWhatsapp -> to manually load whatsapp after unloading it, initially whatsapp is loaded using token id from queryString of websocket url.

sendText -> to send message to multiple contacts at once

sendImage -> to send image with caption to multiple contacts

getMessages -> to load chat of particular contact, sometimes loads only few messages. send loadEarlierMessages action to load more messages

getUnreadMessages -> to get contact wise unread messages with count and messages both

this project was possbile thanks to the astro team

1.2.1

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago