I’m trying to set up Home Assistant using Nabu Casa to send and receive Telegram messages.
So far I’m trying to use a simple ping pong script.
telegram_bot: - platform: webhooks api_key: 111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAA url: https://abcdefghijklmnop.ui.nabu.casa:8443 allowed_chat_ids: - 11111111111 notify: - name: Telegram_Bot platform: telegram chat_id: 11111111111
Then I set up a automation using the automation wizard. I have translated the following YAML
- id: 'A' alias: PingPong trigger: platform: event event_type: telegram_command event_data: command: '/ping' action: - service: telegram_bot.send_message data: message: 'pong'
Unfortunately, this doesn’t work upon receiving the messages (in fact, I cannot even see the event). Sending the messages does work on the other hand (via a service or by triggering the automation).
How come I can send messages but I cannot receive them?