Added telegram-bot-api systemd unit

This commit is contained in:
hok7z 2023-01-05 12:14:22 +02:00
parent 8e4e179c7d
commit b6485f4e58
2 changed files with 16 additions and 0 deletions

4
systemd/config.env Normal file
View File

@ -0,0 +1,4 @@
ip=127.0.0.1
port=5326
api_id=123
api_hash=abcde123

View File

@ -0,0 +1,12 @@
[Unit]
Description=Telegram Bot API server
After=network-online.target
[Service]
Type=simple
EnvironmentFile=/home/q/.config/telegram-bot-api/config.env
WorkingDirectory=~
ExecStart=/home/q/bin/telegram-bot-api --api-id=${api_id} --api-hash=${api_hash} --local --http-stat-ip-address=${ip} --http-port=${port} --dir=/home/q/.config/telegram-bot-api/
[Install]
WantedBy=multi-user.target