1: 2:
3:
4:
5: ❗ New! RedBot 2.0 is out, see the changelog
6:
7:
15: 16: With RedBot you can visually build a full featured chat bot for Telegram, Facebook Messenger, WhatsApp, Viber and Slack with Node-RED.
bash 42: sudo npm install -g node-red 43:
44:
45: Then open the user data directory ~/.node-red and install the package
46:
47: bash 48: cd ~/.node-red 49: npm install node-red-contrib-chatbot 50:
51:
52: Then run
53:
54: bash 55: node-red 56:
57:
58: The next step is to create a chat bot, I recommend to use Telegram since the setup is easier (Telegram allows polling to receive messages, so it's not necessary to create a https certificate).
59: Use @BotFather to create a chat bot, follow instructions here then copy your access token.
60:
61: Then open your Node-RED and add a Telegram Receiver, in the configuration panel, add a new bot and paste the token
62:
63:
64:
65: Now add a Message node and connect it to the Telegram Receiver
66:
67:
68:
69: Finally add a Telegram Sender node, don't forget to select in the configuration panel the same bot of the Telegram Receiver, this should be the final layout
70:
71:
72:
73: Now you have a useful bot that answers "Hi there!" to any received message. We can do a lot better.
74:
75: ## Credits
76: * Inspired by the Karl-Heinz Wind work node-red-contrib-telegram
77: * Telegram Bot API for NodeJS
78:
79: ## The MIT License
80:
81: Copyright (c) 2026 Guidone
82:
83: Permission is hereby granted, free of charge, to any person obtaining a copy
84: of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
85:
86: The above copyright notice and this permission notice shall be included in
87: all copies or substantial portions of the Software.
88:
89: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
91:
92: Coded with ❤️ in 🇮🇹



