Trouble receiving Telegram updates via webhook (with Nabu Casa)

Hi everyone,

I’m trying to get my Telegram bot working properly with Home Assistant using the Telegram Bot integration and Nabu Casa for webhook support, but I’m stuck.

Here’s what I’ve done:

  • I created a Telegram bot and added it to Home Assistant using the official integration
  • I entered my Nabu Casa remote URL during setup
  • My chat ID is added to the allowed chats
  • I can successfully send messages from Home Assistant to Telegram, no issues there
  • But incoming messages from Telegram (like /ping ) never trigger any events — no telegram_command or telegram_text events show up in Developer Tools
  • I’ve also tried using listen to events in dev tools, but nothing appears
  • That same bot is connected in Node-RED using polling mode, and it receives messages perfectly

So the bot and token are clearly valid and operational, but I’m unsure whether the webhook is properly registered on the Telegram side through Home Assistant / Nabu Casa.

Has anyone else experienced this with the Telegram bot integration and Nabu Casa? Is there an extra step I might have missed?

Thanks in advance for your help!

— Mario

You need to enable remote access from outside the network.

This is required for Telegram to connect to your HA instance.

Thanks for the reply!

Yes, I already have remote access enabled, and I can access my Home Assistant instance externally without any issues.

The Telegram bot is also able to send messages from HA to Telegram just fine, so the outbound connection is working. The problem is that incoming messages (like /ping) never trigger any events in Home Assistant, even though the bot is working perfectly in Node-RED via polling.

I’ve also tried manually setting the webhook using the Telegram API and my Nabu Casa URL, but still no luck.

So I’m still trying to figure out why Home Assistant isn’t receiving any updates from Telegram. If anyone has this working with Nabu Casa and the Telegram Bot integration, I’d love to hear how you got it set up.

Thanks again!

Sounds more like your trigger may be the issue. Here’s one of mine for comparison:

  - trigger: event
    event_type: telegram_callback
    event_data:
      data: '/stats'

And the message that sets it up:

  actions:
  - action: notify.telegram_ping
    data:
      title: Title Here
      message: Message Here
      data:
        inline_keyboard:
        - 'Stats:/stats'

Any error message from webhook info?


To check for the error message:

  1. make sure your bot is configured as webhook
  2. send a message or command to your bot using your Telegram client (e.g. Telegram mobile/desktop app)
  3. wait for a while (might take a few minutes if there’s network related error)
  4. Invoke the Telegram get webhook info API
    curl https://api.telegram.org/botAPI_KEY/getWebhookInfo
    Replace API_KEY accordingly.

If your webhook is setup correctly, you should see a json response with pending_update_count having a value of 0.

If Telegram has problems connecting to your webhook, you will see the error timestamp and message in the json response.