Telegram: How to Send a Message to 2 people?

I’m having a lot of trouble getting a telegram message to send to 2 people.

  1. I setup a bot with my account and have an automation working using node-red.
  2. Then added my wife’s chatid to both node-red and my config.yaml file but she isn’t receiving messages. I did message the bot from wife’s account but it seems like I’m missing some step to authorize her to use the bot?

I’ve read through the docs and searched the forums but I can’t figure out what I’m missing. Can anyone point me in the right direction?

telegram_bot:
  - platform: broadcast
    api_key: myapikey
    allowed_chat_ids:
      - chatid1
      - chatid2

notify:
  - name: doug
    platform: telegram
    chat_id: chatid1
  - name: cassie
    platform: telegram
    chat_id: chatid2

It’s been a while since I did it, but did you run the /start command with the user’s client ap? I don’t think it can message you until you initiate it

Message the bot /start from my wife’s account? That’s how you authorize the bot to message others?

Edit: I just tried that and her account is still not receiving messages.

Interesting. I recommend you to simply try to send a basic message using a command line or python client, the most simple thing you can and verify it works from there before then checking integration again with HASS.

I do this, but not with nodered.
It seems like you have the required pieces to just try it in the services section to see if it works without nodered.
If that works at least you can narrow it down.

I was just able to try sending a message in the services section and that works!

I’m now trying to figure out what is wrong with my node-red configuration.

I am having the same issue. Works for me for one Telegram account, can’t get it for 2. If you find the answer, please post :slight_smile: Thanks in advance !!

Just use chatbot node in telegram and do it all from there. Why are you connecting the bot to HA?

I’m not sure I understand? Isn’t that what I have setup in my node red image above?

Will you explain how I should have it setup using only node red?

You specifically stated you added your config to HA. This is not needed if you are using chatbot on node red. It could actually be WHY it’s not working, because you are trying to access the bot from more than one source.

Comment OUT the complete notification setup in HA config for your telegram bot. Restart node-red, and try again.

Ah, that makes sense. I’ll try that out when I have access to my server again. Thanks!

I did this by making a new chat, inviting my husband to it, inviting the bot and I have messages sent to that chat and we both get it.

My configuration is as follows:

Bot in group chat with my wife, my son, myself - High priority alerts
Bot in chat with me - muted notifications - just a running log of things that happen in HA
Bot in chat with my son - Alerts intended just for him
Bot in chat with my wife - Alerts intended just for her

All of these are created with only ONE bot and messages are all sent through Node Red Chatbot

Mine is kind of similar.
One bot, many chats.
One chat for snapshots when cameras are triggered for husband and I.
One chat for things I need to access later - for instance, if I am in my office and want to use a recipe I found, I send it to a different chat so I can access it from the kitchen tablet.
One for my kids stuff, etc