forked from raweee/node-red-contrib-whatsapp-link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup-out.html
54 lines (51 loc) · 2.06 KB
/
group-out.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script type="text/javascript">
RED.nodes.registerType('group-out',{
category: 'whatsapp',
color: '#25D366',
defaults: {
name: {value:"Group Message"},
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
gID: {value: ""}
},
outputs:0,
inputs:1,
icon: 'whatsappLink.svg',
align: 'right',
label: function() {
return this.name||"Whatsapp Group";
}
});
</script>
<script type="text/html" data-template-name="group-out">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-whatsappLink"><i class="fa fa-gear"></i> Client</label>
<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..">
</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>
</div>
</script>
<script type="text/html" data-help-name="group-out">
<p>Whatsapp Group Node to send message in a Group.</p>
<p>Group chat IDs are numbers given to each chats in whatsapp.</p>
<p> - 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>
</script>