Send alert to telegram channel and store at influxdb

Hello.
I have a door sensor. I need send an alert to telegram channel and store the value at infludb.
Any documentation, please?
Thanks

I would use node red (can run on a raspberry pi for example, or on any server you have), theres tutorials out there for then sending data to an influx db from nodered and for sending messages to Telegram.