I share my work and I hope it can be useful to some beginners like me.
I’m creating an app that controls the opening of a lock via BLE command sent to an ESP32 device
specially configured with Arduio IDE.
This app involves registering users in Firebase and storing the OPEN event of each individual user in FirebaseDatabase. I needed to know which user opens the door and when they open it. To have a list that is always updated over time I thought of integrating a Telegram BOT where you can receive notifications in real time, I got what I wanted with a WEB API post request.
obviously I created my BOT on telegram first and got the token and the chat_ID number
I set the WEB_Api block with URL like this: https://api.telegram.org/bot<YOUR_BOT_TOKEN>/sendMessage ,
and inserted my cat_id number into the WEB_Api body block.
I hope the photo of my code can help because I wasted some time trying to understand it.
3 Likes