#Telegram - send to multiple Channels

1 messages · Page 1 of 1 (latest)

sturdy cove
#

Hi people! I'm struggling with setting up the Telegram integration. I have set up a bot and can send a personal message to my Telegram client just fine. However I would like to send to 2 separate channels as well, one for Notifications and one for Alarms.

#

This is in my configuration.yaml:

#

`telegram_bot:

  • platform: polling
    api_key: "6540404541:ABCjv98GVV_Ue_kqdHZYrf8Azdd5ttM7t5c"
    allowed_chat_ids:
    • 5539731111
    • "-1906493333"
    • "-1623496777"`
#

`notify:

  • platform: telegram
    name: "telegram_pm_john"
    chat_id: 5539731111

  • platform: telegram
    name: "telegram_notifications"
    chat_id: "-1906493333"

  • platform: telegram
    name: "telegram_alarm"
    chat_id: "-1623496777"`

#

When I call the service Notifications: Send a notification with telegram_alarm, I am getting this error in the HA logs:
Logger: homeassistant.components.telegram_bot Source: components/telegram_bot/__init__.py:655 Integration: Telegram bot (documentation, issues) First occurred: 09:38:42 (1 occurrences) Last logged: 09:38:42 Error sending message: Can't parse entities: can't find end of the entity starting at byte offset 48. Args: (-1623496777, 'Notifications: Send a notification with telegram_alarm 4'), kwargs: {'parse_mode': 'Markdown', 'disable_web_page_preview': None, 'disable_notification': False, 'reply_to_message_id': None, 'reply_markup': None, 'timeout': None}

#

I guess this is due to some stupid typo in my configurations.yaml, but I've been looking and testing for the last hour and I can't seem to wrap my head around this. Anyone care to take a look?