Forums

telegram webhooks

Hi all, hopefully someone else has run into this before.

I wrote a python/flask bot for telegram with webhooks. it works I see messages etc but for some reason after an hour or so I start to receive error 500, rather than the 200 and message. If I use a different token it works and after a while the old one starts to work again.

Has anyone run into this before?

Thanks in advance.

Is anything being written to your website's error log? There's a link to that on the "Web" page inside PythonAnywhere, and the most recent error will be at the bottom of the file. 500 errors trigger the writing of the exception that caused them to that file.