UNPKG

node-red-contrib-botmaster

Version:
42 lines (39 loc) 1.41 kB
<script type="text/javascript"> RED.nodes.registerType('telegram-bot',{ category: 'botmaster', color: '#a6bbcf', defaults: { name: {value:""}, authToken: {value: ""}, webhookEndpoint: {value: ""} }, icon: "telegram.png", label: function() { return this.name||"Telegram Bot"; } }); </script> <script type="text/x-red" data-template-name="telegram-bot"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-authToken"><i class="icon-tag"></i> Verify Token</label> <input type="text" id="node-input-authToken" placeholder="Auth Token"> </div> <div class="form-row"> <label for="node-input-webhookEndpoint"><i class="icon-tag"></i> Endpoint</label> <input type="text" id="node-input-webhookEndpoint" placeholder="Webhook Endpoint"> </div> </script> <script type="text/x-red" data-help-name="telegram-bot"> <p> Setup a Telegram bot. </p> <p> Use this node to provision creentials for a Telegram bot. </p> <p> Read the <a href="http://botmasterai.com/getting-started/telegram-setup/">offical docs</a> to learn more about setting up credentails. </p> </script>