I created my telegram bot, and it's running successfully, but I need to keep it running till I closed my PC
Asked
Active
Viewed 892 times
-3
-
have a look at heroku – sputnick567 Jan 07 '22 at 09:39
-
You need to include a bit more information in your question about what you are trying to achieve. The most naive solution to running something indefinitely will be putting it in a `while True` loop. – Curtwagner1984 Jan 07 '22 at 09:39
2 Answers
0
You have to run it on a server. You can deploy it on Heroku for free (https://www.heroku.com/).

Dolan
- 29
- 1
- 5
0
If you want to run it on your own computer (i.e. not on a server such as AWS or Heroku), you could look to daemonize your application. The easiest would be to use python-daemon.

lcdumort
- 599
- 3
- 20