I created .py file for telegram bot and run it on python. bot started working, and when I closed running .py file my bot stopped | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I created .py file for telegram bot and run it on python. bot started working, and when I closed running .py file my bot stopped

Should i upload it on server?

20th Mar 2017, 1:52 PM
GooDMooD_JY
GooDMooD_JY - avatar
1 Answer
+ 1
Yes, it will be better to upload script to server and run it into background. try something like "python myscript.py > /dev/null 2>&1 &" then you can check it in processes - "ps aux | grep myscript " and kill it by PID if you want to end process.
20th Mar 2017, 3:05 PM
Tony Loa
Tony  Loa - avatar