All Projects β†’ Briuor β†’ Wbm

Briuor / Wbm

Licence: mit
wbm is an unofficial API to send bulk messages in whatsapp.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wbm

Me bot
Build a bot that speaks like you!
Stars: ✭ 641 (+1065.45%)
Mutual labels:  whatsapp
Laravel Sms
πŸ“±βœ”οΈA phone number validation solution based on laravel
Stars: ✭ 838 (+1423.64%)
Mutual labels:  phone-number
Chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. πŸ”₯πŸ’¬
Stars: ✭ 11,554 (+20907.27%)
Mutual labels:  whatsapp
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+1221.82%)
Mutual labels:  whatsapp
Fieldtypephone
ProcessWire Fieldtype for entering 4 part phone numbers: country/area code/number/extension as integers
Stars: ✭ 5 (-90.91%)
Mutual labels:  phone-number
Whatsapp Framework
βš—οΈWhatsapp python api
Stars: ✭ 945 (+1618.18%)
Mutual labels:  whatsapp
Intl Tel Input
A JavaScript plugin for entering and validating international telephone numbers
Stars: ✭ 5,963 (+10741.82%)
Mutual labels:  phone-number
Whalesong
Whalesong is an asyncio python library to manage WebApps remotely. Currently WhatsappWeb is implemented
Stars: ✭ 46 (-16.36%)
Mutual labels:  whatsapp
Afaddressbookmanager
Get contacts from iOS Address Book by their phone numbers and email addresses. Works on iOS 6+.
Stars: ✭ 24 (-56.36%)
Mutual labels:  phone-number
Mailgo
πŸ’Œ mailgo, a new concept of mailto and tel links
Stars: ✭ 978 (+1678.18%)
Mutual labels:  whatsapp
Phonelib
Ruby gem for phone validation and formatting using google libphonenumber library data
Stars: ✭ 731 (+1229.09%)
Mutual labels:  phone-number
Chatistics
πŸ’¬ Python scripts to parse Messenger, Hangouts, WhatsApp and Telegram chat logs into DataFrames.
Stars: ✭ 814 (+1380%)
Mutual labels:  whatsapp
Ae Sticker App
stickers for whatsapp
Stars: ✭ 31 (-43.64%)
Mutual labels:  whatsapp
Whatsapp Desktop Dark
Dark mode for WhatsApp desktop official version (Windows & macOS)
Stars: ✭ 664 (+1107.27%)
Mutual labels:  whatsapp
Numpad
Numpad is light weight library for multipurpose usage in numaric input
Stars: ✭ 44 (-20%)
Mutual labels:  phone-number
Wbot
A simple Web based BOT for WhatsAppβ„’ in NodeJS 😜. Working as of πŸ“… Feb 14th, 2020
Stars: ✭ 638 (+1060%)
Mutual labels:  whatsapp
Sulla
πŸ‘©πŸ»β€πŸ”¬ Javascript Whatsapp api library for chatbots
Stars: ✭ 844 (+1434.55%)
Mutual labels:  whatsapp
Whatsapp Sticker Maker
Whatsapp android sticker maker
Stars: ✭ 54 (-1.82%)
Mutual labels:  whatsapp
Kotlin Firebase Group Chat
Group and OneonOne chat using firebase built in Kotlin similar to whatsapp.
Stars: ✭ 44 (-20%)
Mutual labels:  whatsapp
Whatsapptodiscord
WhatsAppToDiscord is a Discord bot uses WhatsApp Web for messaging in Discord built on top of go-whatsapp and discordgo
Stars: ✭ 35 (-36.36%)
Mutual labels:  whatsapp

npm version

wbm

wbm is an unofficial API to send bulk messages in whatsapp.

Installation

> npm install wbm

Usage

At the beginning it will display a QR Code on terminal, just scan it using whatsapp app.
Your session will be remembered, there is no need to authenticate everytime.

Send same message to every contact

const wbm = require('wbm');

wbm.start().then(async () => {
    const phones = ['5535988841854', '35988841854', '5535988841854'];
    const message = 'Good Morning.';
    await wbm.send(phones, message);
    await wbm.end();
}).catch(err => console.log(err));

Send custom message to every contact

const wbm = require('wbm');

wbm.start().then(async () => {
    const contacts = [
        { phone: '5535988841854', name: 'Bruno', age: 21 },
        { phone: '5535988841854', name: 'Will', age: 33 }
    ];
    const message = 'Hi {{name}}, your age is {{age}}';
    // Hi Bruno, your age is 21
    // Hi Will, your age is 33
    await wbm.send(contacts, message);
    await wbm.end();
}).catch(err => console.log(err));

Send custom messages using YOUR OWN RULE

const wbm = require('wbm');

wbm.start().then(async () => {
    const contacts = [
        { phone: '5535988841854', name: 'Bruno', group: 'friend' }, 
        { phone: '5535988841854', name: 'Will', group: 'customer' }
    ];
    for (contact of contacts) {
        let message = 'hi';
        if(contact.group === 'customer') {
            message = 'Good morning ' + contact.name;
        }
        else if(contact.group === 'friend') {
            message = 'Hey ' + contact.name + '. Wassup?';
        }
        await wbm.sendTo(contact.phone, message);
    }
    await wbm.end();
}).catch(err => console.log(err));

API

start(options)

  • options
    Object containing optional parameters as attribute.
    Type: object
    • showBrowser
      Show browser running the script.
      Default: false
      Type: boolean
    • qrCodeData
      Instead of generate the QR Code, returns the data used to generate the QR Code as promise.
      Default: false
      Type: boolean
    • session
      Keep user session, so the user must scan the QR Code once.
      Default: true
      Type: boolean
// It will open a browser, return the QR code data as promise and not keep user session
wbm.start({showBrowser: true, qrCodeData: true, session: false})
.then(async qrCodeData => {
    console.log(qrCodeData); // show data used to generate QR Code
    await wbm.waitQRCode();
    // waitQRCode() is necessary when qrCodeData is true
    // ...
    await wbm.end();
} ).catch(err => { console.log(err); });

send(phoneOrContacts, message)

Send message to every phone number.

  • phoneOrContacts
    Array of phone numbers: ['5535988841854', ...].
    Or
    Array of contacts: [{phone: '5535988841854', name: 'Will', group: 'partner', age: 22', any: 'anything', ...}, ...]
    Type: array

  • message
    Message to send to every phone number.
    Text inside curly braces like {{attribute}} will be replaced by the contact object respective attribute.
    Type: string

wbm.start().then(async () => {
    const contacts = [
        {phone: '5535988841854', name: 'Bruno'},
        {phone: '5535988841854', name: 'Will'}
    ];
    await wbm.send(contacts, 'Hey {{name}}');
    // Hey Bruno
    // Hey Will
    await wbm.send(['5535988841854', '5535988841854'], 'Hey man'); 
    // Hey man
    // Hey man
    await wbm.end();
}).catch(err => { console.log(err); });

sendTo(phoneOrContact, message)

Send message to a single phone number.

  • phoneOrContact
    Phone number. Example '5535988841854'.
    Type: string
    Or Contact object. Example: {phone: '5535988841854', name: 'Will', group: 'partner'}
    Type: object

  • message
    Message to send to phone number.
    Text inside curly braces like {{attribute}} will be replaced by the contact object respective attribute.
    Type: string

wbm.start().then(async () => {
    await wbm.sendTo({phone: '5535988841854', name: 'Bruno'}, 'Hey {{name}}');
    // Hey Bruno
    await wbm.sendTo('5535988841854', 'Hey man');
    // Hey man
    await wbm.end();
}).catch(err => { console.log(err); });

end()

This method must be used at the end of wbm.start() to finish the browser.

Note

wbm is an unofficial solution. It's not recommended using wbm in your company or for marketing purpose.

Contributing

Feel free to create pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].