Telegram Set-up since HA 2025.7.1

The whitespace doesn’t matter.
The integration will automatically strip away whitespaces.

For the URL, yes, it is your nabu casa.
I think you should be able to copy the value from Settings> Home Assistant Cloud.

1 Like

I just checked my logs and saw this error which I didn’t see come up before:

Where would I add or check the secret token?

OK I found out the issue! It looks like the new UI Integration of Telegram does not like the hidden password from my .secrets file…refer to the above log error message. When I pasted the actual API key in to the Webhook .yaml file and restarted it now works.

Thank you so much for the support, it helped me to preserve and get there in the end.

The secret token is generated and used internally by the integration.
You do not need to do anything with it.

For your info:
The integration uses the secret token to register the webhooks.
Whenever Telegram needs to send updates to your HA, it will use the secret token to authenticate with the HA Telegram integration.
This prevents random strangers from sending junk to your HA.

For the Invalid secret token from 127.0.0.1 error, the issue isn’t related to secrets.
You probably had 2 Telegram webhook bots and the secrets were overwriting each other.

It’s a bug in the integration.

1 Like

Strange that when i removed the webhook.yaml which contained the secret reference, the /commands still didnt work. But that time I had not added 127.0.0.1 to my integration config.

I have tried so manythings over days, so it could all be related. I have raised an issue on the owners gihub lets see if he finds any issues around that.

I’m just glad it’s working again, now back to learnin NodeRed and AI to automate more with Telegram.