Telegram notification username required

Hi all,

I use Telegram for some notifications and I noticed an automation stopped working a few months ago. I was looking at it again since I want to start using it again, but I can’t get it to work.

Here is the automation:

alias: Waste has not been moved
description: ""
triggers:
  - hours: /1
    trigger: time_pattern
conditions:
  - condition: and
    conditions:
      - condition: time
        after: "20:00:00"
        before: "20:30:00"
      - condition: template
        value_template: "{{ states('sensor.afvalwijzer_tomorrow') != 'geen' }}"
actions:
  - metadata: {}
    data:
      authentication: digest
      url: https://media.tenor.com/VFaOfRx7q90AAAAM/joshua-trash-can.gif
    action: telegram_bot.send_animation
  - data:
      title: Afval
      message: >-
        Het is vandaag - {{ now().strftime("%d-%m-%Y") }}. Afvaltype(n): {{
        states.sensor.afvalwijzer_tomorrow.state }} wordt opgehaald op: {{
        (as_timestamp(now()) + (24*3600)) | timestamp_custom("%d-%m-%Y", True)
        }}!
      data:
        push:
          badge: 0
          category: afval
    action: notify.xxxx

This is the error:

Telegram bot 'Send animation'
Executed: January 2, 2026 at 10:00:20
Error: Username is required.
Result:
params:
  domain: telegram_bot
  service: send_animation
  service_data:
    authentication: digest
    url: https://media.tenor.com/VFaOfRx7q90AAAAM/joshua-trash-can.gif
    config_entry_id: xxxxxxxxxxxxxxxxxxxxxxxx
  target: {}
running_script: false

This is my Telegram config:

# Telegram Bot
telegram_bot:
  - platform: polling
    api_key: "xxxxxxxxxxxxxxx"
    allowed_chat_ids:
      - xxxxxxxx
# Notifier
notify:
  - platform: telegram
    name: "xxxx"
    chat_id: xxxxxxxx

I’m guessing something changed and I also read that the telegram config maybe needs to be changed, I tried this but without luck. Also I saw in the automation this option:

“Config entry ID
The config entry representing the Telegram bot to send the animation.”
Here I can select the Telegram integration, but this also does not fix it.

Any idea’s why using the bot is not working?

remove authentication: digest from your action if it doesnt need authentication.

1 Like

Thanks, this seems to work. I also got the notification that notify will be deprecated.

The Telegram notify service has been migrated. A new notify entity per chat ID is available now.

Update all affected automations to use the new notify.send_message action exposed by these new entities and then restart Home Assistant

I have:
action: notify.xxxx
And tried:
action: notify.send_message.xxxx
But I can’t seem to save the notification. Do you have any idea what the correct syntax would be?

Thanks!

telegram_bot.sendd_animation