Forums

Webhook stopped working

Everything was normal for two months, I had telegram bot with webhook, made as webapp on Flask, but one or two days ago it stopped working and now telegram don't send any POST requests (there is nothing in access.log), in https://api.telegram.org/botTOKEN/getWebhookInfo I get "last_error_date":1684937793,"last_error_message": "Connection timed out".

We've had other people report similar problems; our best guess right now is that Telegram have a bug where they treat all sites with hostnames like something.pythonanywhere.com as if they were the same, so if one times out due to a bug, they will stop delivering messages to all of them. Unfortunately there's nothing we can do about that; you'd need to raise it with Telegram.