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?