I created my telegram bot, and it’s running successfully, but I need to keep it running till I closed my PC
- January 7, 2022
- 241 views
- 0 votes
- 2 Answers
-
I created my telegram bot, and it’s running successfully, but I need to keep it running till I closed my PC
2
Answers
You have to run it on a server. You can deploy it on Heroku for free (https://www.heroku.com/).
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.