Answer the question
In order to leave comments, you need to log in
Endless running of python code anyway?
I hosted a small vk bot on python anyware. Due to the LongPoll feature, a ReadTimeOut error is thrown. I was told that a longpoll connection cannot be kept indefinitely. The question is, how can you endlessly restart the code with a bot on a python hosting anyware?
Answer the question
In order to leave comments, you need to log in
Catching an exception and re-establishing a connection, I also know from my own experience that PythonAnywhere on a free plan reboots the host daily (probably so that it doesn’t work 24/7 for free), they write about this in the FAQ.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question