I want to create a simple temperature alert that will be triggered when its reaches a certain value (threshold). I'm trying to set the threshold dynamically based on the value input from telegram bot message.
ex : default threshold set on the program code is 25°, I want to change that threshold to 27° via telegram bot message? is that possible? I have searched on google and only found how to change led state on/of using telegram command "/command" without inputting a value to it. How to get the message value from telegram bot and save it as threshold variable to my alert system?. Please help
that's not what I mean. I'm sorry if my question is confusing. What i need to know is how to save a telegram bot message into a threshold variable of my program. if the user send a message of number 27, then the thresold will be set to 27.