How to get value from telegram messagge to arduino program?

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

Thanks in advance.

Hello. Let the LED that you know how to change state on/off be your simple alert:

if (centigradThreshold >= 27)
     analog.Write(LED, HIGH)

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.

What equipment receives the "telegram message", how is it connected to the Arduino, and how is the message sent to the Arduino?

Please post a complete wiring diagram, the code, using code tags, and links to all the components.

For instructions please read the "How to get the best out of the forum" post, linked at the head of every forum category.

Hi, did you find a solution for this topic? If you found it, can you share with me? I also opened a topic about it in the link below.
thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.