Answer the question
In order to leave comments, you need to log in
Two telegram bots on VPS with ubuntu?
Friends, I purchased a vps with ubuntu using the remoteness guide to run one
bot.service bot in /etc/systemd/system
[Unit]
Description=Telegram bot 'Town Wars'
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/bin/bot
ExecStart=/usr/bin/python3 /usr/local/bin/bot/bot.py
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Make 2 copies:
bot.service
bot2.service (make appropriate changes in the file itself)
2 copies:
/usr/local/bin/bot
/usr/local/bin/bot2
2 copies:
/usr/local/bin/bot/ bot.py
/usr/local/bin/bot2/bot2.py
Well, in the console, the same thing with connecting the service, but for bot2
And what does the systemd file look like for the second bot?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question