0.1.39-C • Published 7 months ago

node-red-contrib-whatsapp-link v0.1.39-C

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Whatsapp Link :iphone:

Simple node for connecting Node-Red to Whatsapp :iphone: Send and Receive Whatsapp Image/Text.

Currently in developing mode, Continous updated may encounter. :sweat_smile:

To Connect with Whatsapp

npm.io

  1. Deploy whatsapp admin node (along with whatsappLink node).
  2. whatsappLink node will initilize, connect with whatsapp and generate a QR code below the Admin Node (in terminal also).
  3. Scan the QR code with your Whatsapp Mobile App (Go to settings > Linked device > Scan & Connect).
  4. Done - Whatsapp Connected.
  5. Send "!nodered" to get a reply from Node-Red in Chats/Groups.

if Whatsapp Web not working ?

Their is lite version also avilable in it. Totally different from Whatapp-Web, Whatsapp-Lite (Beta Mode) works on Web-Sockets only, It might work for you also.

Simply chosse Whatsapp Lite in Whatsapp-Link configration node.

npm.io

It will create a Whatsapp Web instance in your machine and store your session locally in Node-RED. All data are store in users <user>/.node-red/Whatsapp-Link folder. Near you Node-Red's settings.js file.

Nodes

  1. Whatsapp Admin : Node used for first time users to connect with whatsapp and other admin related tasks. Admin Node generate QR Code just below the node for easy connection with whatsapp.
| Inputs | Description           |
|--------|--------------         |
| test   | Checks the current status of whatsapp and output the same in `msg.payload`|
| destroy| Close the client and destroy the whatsapp connection.|
| restart | Restart the whatsapp connection. |
| logout | Simply log you out and close the session. |
---


| Output | Description |
|--------| ------------|
|`status` | provide status on `msg.payload` for all and each input mentioned in above table. |
| Connecting..| When whatsapp attempting to connect.
| QR Code (image) | when QR code is generated. *This method can also be used to get QR Code (image) generated by whatsapp.*
| Connected | When whatapp is sucessfully connected.|
| Group Joined or Removed | `msg.paylod` : Group Name. </br> `msg.type` : joined / Removed from group.</br> `msg.notification` : Complete notification. </br> `msg.chat` : Complete Group Details. 
  1. Chats In : Node to recive all messages send to connected number.

    • Simply deploy the node and wait for green (connected) status.
    • After succesfully connection, Node is able to recive all messages.
    OutputDescription
    msg.paylodRecived message
    msg.fromSender Number
    msg.chatIDChat ID of Group chat / Personal chat
    msg.messageComplete message object. Some extra details for advance users

    Their are many other events options avilable along with message event in Chats-In Node. For details refer documentation for Chats-In Node.

  1. Chats / Group Out : As simple as mention on name, node will send msg.payload recived at input to the number mentioned in node. ImageMessage.json example is avilable in examples to import.

    MultiMedia Message: Requirments-
    | Input | Description |
    |--------|-------------|
    | `msg.image` | Base64 (encoded image), [`image-tool`](https://flows.nodered.org/node/node-red-contrib-image-tools) node work fine for incoding base64|
    | `msg.payload`   | Image Caption |
    | `msg.toNumber` | Reciver number (if number not provided in node) |
    
    Don't forget to mention international dialing code befor your number.
    Number must be in format like <b>+11 99999 99999</b> without any space.
        <P><b>OR</b></P>
    Leave the Number blank and provide the number along with paylod at `msg.toNumber` with international code.
    To send message on multiple contacts an Arrar of number can be passed on `msg.toNumber` like `msg.toNumber` = ["+1199999999", "+12990000099", "+1311111111"].
  1. Group Message : Whatsapp Group Node to send message in a Group.

    The node will send recived msg.payload to a group chat.

A-reply-to-All.json example is avilable in examples to import.

  1. Reply Node : In Beta mode. (Chats-out Node can be used instead of reply node)

Node will reply(the payload) on each message starting with string mentioned in instruction coloum or defaults !red. Avoid using it please.

Issues & Updates

Issues and Suggestions are welcome here.

  • Ver-0.1.21 : Group Message Node added.
  • Ver-0.1.23 : Nodes are formatted correctly and names are updated.
  • Ver-0.1.28 : Now QR Codes are directlly avilable in run time on Whatsapp-Admin-Node.
  • Ver-0.1.30 : Message can be send to an Array of contacts provided at msg.toNumber.
  • Ver-0.1.32 : Socket based Whatsapp Lite config node added in beta mode. Image message sending support added in chats-out node.
  • Ver-0.1.33 : Button and list support added, Minnor bugs fixed.
  • Ver-0.1.34 : Multiple Events reading options are added in Chats-In Node.
  • Ver-0.1.36 : Check box added to show status as Online/Offline in Whatsapp-Link Node, to get push notifications. Ping-Interval added to keep whatsapp alive for long time. Multiple examples added.
  • Ver-0.1.37 : Changes for correction of send message with images and use Chromium profiles in Puppeteer.
  • Ver-0.1.39B : Broken "Whatsapp-Web & Lite" fixed. Able to Send/Receive whatsapp Image/Text in both Whatsapp-Lite & Web. working on easy to use nodes.

Future Nodes

Currently working on more Whatsapp Node and will be avilable soon - 1. Chat Reply node. (working) 2. Whatsapp button message. 3. Whatsapp List message. 2. Instruction (smart) Reply Node.

Complete detail for Nodes will also be updated as soon as possible.

Please don`t try to spam with your personal Number, Suspicious activities might be tracked by whatsapp.

Thanks to bear with me

0.1.39-C

7 months ago

0.1.39-B

7 months ago

0.1.39-A

8 months ago

0.1.38

8 months ago

0.1.39

8 months ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.32

1 year ago

0.1.33

1 year ago

0.1.34

1 year ago

0.1.35

1 year ago

0.1.32-A

1 year ago

0.1.36

1 year ago

0.1.37

1 year ago

0.1.37-A

1 year ago

0.1.36-A

1 year ago

0.1.29

1 year ago

0.1.34-A

1 year ago

0.1.28-B

1 year ago

0.1.28-A

1 year ago

0.1.28

1 year ago

0.1.2-7.2

1 year ago

0.1.2-7.1

1 year ago

0.1.27

1 year ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.201

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.1

1 year ago