First take on recipient node
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
defaults: {
|
||||
name: {value:"Group Message"},
|
||||
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
||||
gID: {value: ""}
|
||||
recipient: {value:"", type:'group-recipient', required:false}
|
||||
},
|
||||
outputs:0,
|
||||
inputs:1,
|
||||
@@ -27,17 +27,14 @@
|
||||
<input type="text" id="node-input-whatsappLink" placeholder="Name">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-gID"><i class="fa fa-address-card-o"></i> Group ID </label>
|
||||
<input type="text" id="node-input-gID" placeholder="Group Chat ID..">
|
||||
<label for="node-input-recipient"><i class="fa fa-users"></i> Group Recipient</label>
|
||||
<input type="text" id="node-input-recipient" placeholder="Select or add group recipient">
|
||||
</div>
|
||||
<div class="form-tips">
|
||||
<p>Group chat IDs are numbers given to each chats in whatsapp. <br>
|
||||
- For every message recived from whatsapp-chats-in Node,
|
||||
Chat ID may be read at <b>msg.chatID</b>.<br>
|
||||
<b>Or</b><br>
|
||||
- Chat ID of group can also be recive from whatsapp-admin Node,
|
||||
whenever the new group joined, Admin Node will notifiy the same.
|
||||
</p>
|
||||
<p><b>Recipient:</b> Select a reusable Group Recipient configuration (optional).</p>
|
||||
<p><b>Override at runtime:</b> Provide <code>msg.toNumber</code> to override the configured recipient.</p>
|
||||
<p>Group IDs are in format NUMBER-TIMESTAMP (e.g., 1234567890-1234567890).</p>
|
||||
<p>Find group IDs from <code>msg.chatID</code> in chats-in node or from the admin node when joining groups.</p>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user