50 lines
1.9 KiB
HTML
50 lines
1.9 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('whatsapp-Gout',{
|
|
category: 'whatsapp',
|
|
color: '#25D366',
|
|
defaults: {
|
|
name: {value:"Group Message"},
|
|
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
|
gID: {value: ""}
|
|
},
|
|
outputs:0,
|
|
inputs:1,
|
|
icon: 'font-awesome/fa-commenting',
|
|
align: 'right',
|
|
label: function() {
|
|
return this.name||"Whatsapp Group";
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="whatsapp-Gout">
|
|
<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-tag"></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-tag"></i> Number</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-IN-Node, Chat ID can be seen at <b>msg.chatID</b>.<br>
|
|
<b>Or</b><br>
|
|
- Chat ID of group can recive from whatsapp-Admin-Node whenever the new group joined.<br>
|
|
</div>
|
|
</script>
|
|
|
|
|
|
<script type="text/html" data-help-name="whatsapp-Gout">
|
|
<p>Whatsapp Group Node to send message in a Group.</p>
|
|
<p>Chat IDs are numbers given to each chats including group chats in whatsapp, <br>
|
|
- For every message recived from Whatsapp-IN-Node, Chat ID can be seen at <b>msg.chatID</b>.<br>
|
|
<b>Or</b><br>
|
|
- Chat ID of group can recive from whatsapp-Admin-Node whenever the new group joined.<br>
|
|
|
|
</script>
|