This is the implementation of my vision of smart home bot
Use telebot.service as an example of how to run the bot as a system process. Commands you may need:
cd /lib/systemd/system
sudo nano telebot.service
systemctl daemon-reload
sudo systemctl restart telebot
systemctl status telebot.service