Forums

My bot stopped

Hello, I was making some modifications to a file and everything is perfect, but when I upload a file here and go to the bot, it does not work. When I try running it in another place, it works. Is it a mistake on my part?

How is it not working? We need more details to help you...

I have a Telegram bot file. When I uploaded it for the first time here, it worked, but after I deleted it and tried to upload it again, it did not work. I thought there was a file or code error. I ran the file through Pydroid 3, but it worked without problems. I tried to run it through a console on a site via the run command, and in fact the bot worked, but when I want to upload a file on the web, it uploads it, but it does not work. After a little research, I discovered that it is a problem with everyone. The web stops after a few hours or a day and does not return to work. Thank you for your quick response. In fact, I thought I would receive a response within two days at the very least

That's right, our consoles are regularly rebooted.

Well, I know that units are restarted every 24 hours. But the problem is that after about two to five hours of running the web or uploading Kodi (what do you want the site to run), the bot, or rather the web, stops working and returns the next day for two hours. Also, does the web system work for only two hours, or is there a problem with the site?

We have Always on tasks for long running jobs. See https://help.pythonanywhere.com/pages/AlwaysOnTasks/