UNPKG

node-red-contrib-chatbot

Version:

REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required

30 lines (25 loc) 1.71 kB
<script type="text/javascript"> $.RedBot.registerType('chatbot-support-table', { category: $.RedBot.config.name + ' Platforms', color: '#FFCC66', defaults: {}, inputs: 1, outputs: 0, paletteLabel: 'Support Table', icon: 'chatbot-extend.png', label: 'Support Table' }); </script> <script type="text/x-red" data-template-name="chatbot-support-table"> Configuration panel is not available for this node </script> <script type="text/x-red" data-help-name="chatbot-support-table"><p>This is a debug node, it dumps in the console a platform compatibility chart for message types.</p> <p><img src="https://s3.us-west-2.amazonaws.com/secure.notion-static.com/67e5266b-cb33-4f7a-a1a7-7daede65d7bc/example-dump-table.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20230218%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230218T124944Z&X-Amz-Expires=3600&X-Amz-Signature=4579a71500716e7d7372f03145f9eb8f861d2f12351c1f357abff68833a86ca5&X-Amz-SignedHeaders=host&x-id=GetObject" alt=""></p> <p><a href="https://www.notion.so/04668c7a415547bc9f34be57dd063db2">Extend node</a> can also declares additional platforms and message types with</p> <pre><code class="language-javascript">node.chat.registerPlatform(&#39;dialog&#39;, &#39;Dialog&#39;); node.chat.registerMessageType(&#39;message&#39;); node.chat.registerMessageType(&#39;photo&#39;); node.chat.registerMessageType(&#39;inline-buttons&#39;); </code></pre> <p>These lines of codes have also the effect to update the transport and message type dropdowns in the <a href="https://www.notion.so/4113636f565d4ff4af08bc61a644206b">Rules node</a> </p> </script>