Send message to telegram group from nodered

Hi, I have HAOS and to be able to send messages to telegram from nodered I have created a bot and I create in nodered a configuration node with:

  • Bot-Name : miBot
  • Token : fasdfadsfasdfd
  • ChatIds : Id of my user

This way it works without problems but now I want to be able to send the messages to a general group where I can send warnings. To do this I have created a group and in it I have put my bot and to test I have configured in nodered a new configuration node

  • Bot-Name : miBot
  • Token : fasdfadsfasdfd
  • ChatIds : Group Id <—

but this way I still get messages to the bot but there is nothing in the group.

I have seen some video that configure it in HA and only reference the Chatid of the group and it seems to work but if in nodered I try to leave blank the Bot-Name or the token it fails me.

Am I missing something? Thanks.

What I ended up doing when I needed to send messages from NodeRed is to call a home assistant service that will use whatever notify or any other mechanism (like TTS) on the behalf of the NodeRed flow. I have a script called alert, which knows how to send messages to my phone, to the voice assistants, to my partner’s phone, et cetera. This I invoke from Node-RED using a service call node. The configuration of how to contact each individual device is stored only in Home Assistant. That way I don’t have to put that configuration in Node-RED at all.

finally I have configured the sending of messages from HA and I call it through an action node in nodered. Thanks.

1 Like