Answer the question
In order to leave comments, you need to log in
Pydroid: Telegram bot disconnects after 2 minutes, what can I do?
I run the bot on pydroid, everything works fine, but the program turns off in just 2 minutes.
How can you run it for an infinite amount of time? I don’t understand Heroku just + I constantly edit the bot.
Answer the question
In order to leave comments, you need to log in
Heroku does not provide an uninterrupted host, in other words, like any hosting on a free basis. As a rule, even if some resources are allocated free of charge, the hosting reserves the right to reset the processes that "load" the server and are free of charge.
Personally, I use this hosting (TYK) in the development of bots.
Very easy to use, much easier to deploy and great interface, compared to Heroku.
Perhaps the problem is not in hosting at all, but in polling. As a rule, at the end of the bot script there should be a bot handler, something like:
More information can be found in the official documentation, in the getUpdates section .
Happy development! bot.polling(None_stop=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question