-3

I created my telegram bot, and it's running successfully, but I need to keep it running till I closed my PC

2 Answers2

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