Hi again. I'm playing around with "node-red-contrib-telegrambot". I'm able to receive messages from my bot on a "comand" e.g. /help.
But what I want is that my bot sends me a message on a certain event. e.g. my my door bell rings.
What I've done so far.
- "Intercept" my 443Mhz door bell and store the event in a global.var (global.set...)
- When I "ask" my bot a comand. He replies with this variable. (When was the last time the door bell rings -> reply = 2020-01-14 12:00:00
My question is now how to use the bot to send immediately a telegram when someone press the door bell button?
I appreciated any advise.