HI! I have attached the code images, i think they are alright. I have rechecked my credentials in conf.py file, they match too. But i am receiving the following error (please find the image attached below)
Please help me solve this issue!
HI! I have attached the code images, i think they are alright. I have rechecked my credentials in conf.py file, they match too. But i am receiving the following error (please find the image attached below)
Please help me solve this issue!
Since we pass parameter inside of Bolt() as bolt_api_key which is predefined argument
so you cannot change variable name
OK, Sir. Lemme try it out.
yellow light blinking right
No sir. The blue and green lights are stable
In the 17th line of telegram.py it should be: return sensor_value
instead of return -999
In function send_telegram_message , inside of except block 2 lines missing
This one done right please check it
In the 17th line of telegram.py it should be: return sensor_value
instead of return -999
did you check this
if data["success"] != 1:
print("Request not successfull")
print("This is the response->", data)
return -999
sensor_value = int(data["value"])
return sensor_value
check the same code properly you have done mistake
It should be like the above one
Please go to your channel info,
there you will get the link like …t.me/something…
this something… to be used as telegram_chat_id
note: ignore the dots in the second and third lines
i have done it to convert it into text else it will display as a link
please check bot id carefully
also check whether the text has zero(0) or capital O present
carefully