- pip install pyTelegramBotAPI
- python bot.py
- script file location -> /etc/telegram-bot/telegram-bot/bot.py
- service location -> /lib/systemd/system/telegram-bot-py.service
- how to check service's status? -> sudo systemctl status telegram-bot-py.service
- how to stop service? -> sudo systemctl stop telegram-bot-py.service
- how to start service? -> sudo systemctl start telegram-bot-py.service
- how to restart service? -> sudo systemctl restart telegram-bot-py.service
https://tecadmin.net/setup-autorun-python-script-using-systemd/