47 lines
1.1 KiB
HTML
47 lines
1.1 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('delete-message', {
|
|
category: 'telegram-account',
|
|
color: '#FF5733',
|
|
icon: 'tg.png',
|
|
align: 'right',
|
|
defaults: {
|
|
name: { value: '' },
|
|
config: { type: 'config', required: false },
|
|
},
|
|
inputs: 1,
|
|
outputs: 1,
|
|
label: function () {
|
|
return this.name || 'Delete Message';
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="delete-message">
|
|
<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"
|
|
style="width: 60%"
|
|
/>
|
|
</div>
|
|
<div class="form-row">
|
|
<label for="node-input-config">
|
|
<i class="fa fa-gear"></i> Config
|
|
</label>
|
|
<input
|
|
type="hidden"
|
|
id="node-input-config"
|
|
placeholder="Config"
|
|
style="width: 60%"
|
|
/>
|
|
</div>
|
|
</script>
|
|
|
|
|
|
<script type="text/html" data-help-name="delete-message">
|
|
input config, chatId, messageIds
|
|
</script> |