Not getting any output after this line. Tried everything, even copy-pasted the same code with some required changes. Following is the error and the code
Its working now but the request is taking a lot of time
It seems like you are exiting the program every time. The telegram request is triggered, so there would be an error with your telegram function.
The delay is a result of the line of code time.sleep(seconds)
. Manipulate the value inside to make sure you receive the notification instantly.
But the overall while loop should be with a 10 second delay. Because you must be on your Basic version of Bolt Cloud.