New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wbm

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wbm

wbm is an API to send bulk message.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

wbm

wbm is an API to send bulk messages in whatsapp.

Installation

> npm install wbm

Usage

:tw-26a0: At the beginning it will display a QR Code on terminal, just scan it using whatsapp app.

Send same message to every contact

const wbm = require('wbm');

wbm.start().then(async () => {
    const phones = ['5535988841854']; // phone numbers ['5535988841854', ...]
    const message = "good morning";
    await wbm.send(phones, message);
})

Send custom message to every contact

const wbm = require('wbm');

wbm.start().then(async () => {
    const contacts = [{ phone: '5535988841854', name: 'Bruno' }];
    for (contact of contacts) {
        let message = 'good morning ' + contact.name;
        await wbm.sendTo(contact.phone, message);
    }
})

API

send(phones, message)

Send same message to every phone number.

phones

Array of phone numbers: ['5535988841854', ...] Type: array

message

Message to send to every phone number Type: string

sendTo(phone, message)

Send message to a phone number.

phone

Phone number: '5535988841854'. Type: string

message

Message to send to phone number. Type: string

License

MIT

Keywords

FAQs

Package last updated on 16 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc