Hi, I am running latest version of HA (0.97.2) and Appdaemon 4.0.2. I am trying to implement a Telegram bot as per https://www.wouterbulten.nl/blog/tech/talking-to-my-house-telegram-homeassistant-bot/. I have stripped the telegram.py code down to the absolute minimum :
import appdaemon.plugins.hass.hassapi as hass class TelegramBot(hass.Hass): def initialize(self): # Start listening for Telegram updates try: self.listen_event(self.receive_telegram_text, "telegram_text") self.log("*** Successfully subscribed to telegram_text events") except: self.log("*** Failed to subscribe to telegram_text events") def receive_telegram_text(self, event_id, payload_event, *args): # Do something with the text self.log("*** Received message from Telegram")
The problem is that I never see the telegram_text event being passed to my python code. The “*** Successfully subscribed to telegram_text events” message is received and despite being able to see the telegram_text event being fired by listening to it on the HA Developer Tools / Events page, it never seems to get to Appdaemon (i.e I don’t see the “*** Received message from Telegram” message in the Appdaemon log),
Any help solving this would be much appreciated.