First take on recipient node

This commit is contained in:
2025-11-17 14:10:07 +01:00
parent 9a7b19f938
commit 642c2b5841
9 changed files with 124 additions and 23 deletions

View File

@@ -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>