Error with telegram code

I am having the problem with the telegram project where first of all I didn’t understood the code at all and second of all my code is running but not sending any message in the telegram app its showing that it has crossed the threshold but than also its unable to send the message. I have attached the photo the page its showing.
please help me soon

Ya you are right to mention that your sensor has worked properly and has detected an anamoly
that sensor value has exceeded the threshold limit set by you.But the error its showing is either due to the incorrect (telegram’s channel id)/(Bot id) provided by you in the code which i hope you had saved in conf.py file.