Telegram_text event don't stop triggering

I noticed today that my Telegram automation is not working well. To simplify things, I replaced all my Telegram automations with this one, from samples:

- alias: 'Telegram bot that repeats text'
  hide_entity: true
  trigger:
    platform: event
    event_type: telegram_text
  action:
    - service: telegram_bot.send_message
      data_template:
        title: '*Dumb automation*'
        target: '{{ trigger.event.data.user_id }}'
        message: 'You said: {{ trigger.event.data.text }}'

With this automation, when I say “Hello” to my bot, my bot will start sending me this message within an interval of 1 minute, forever:

*Dumb automation*
You said: Hello

HA logbook also shows the problem:

19:00 Telegram bot that repeats text has been triggered
18:59 Telegram bot that repeats text has been triggered
18:58 Telegram bot that repeats text has been triggered

This is my Telegram bot configuration:

telegram_bot:
  - platform: webhooks
    api_key: !secret telegram_api_key
    url: https://iprefertokeepmyurlprivate.duckdns.org:443
    parse_mode: html
    allowed_chat_ids:
      - !secret telegram_chat_id_home-group

I noticed this issue after I upgraded to HA latest version (0.64.0). Any help with this?

exact same thing happened to me after upgrading to HA 0.64, now all my telegram_bot automations are broken.

I filed a new issue: https://github.com/home-assistant/home-assistant/issues/12774

1 Like