13 lines
373 B
SYSTEMD
13 lines
373 B
SYSTEMD
|
[Unit]
|
||
|
Description=Telegram Bot API server
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
EnvironmentFile=$HOME/.config/telegram-bot-api/config.env
|
||
|
WorkingDirectory=~
|
||
|
ExecStart=telegram-bot-api --api-id=${api_id} --api-hash=${api_hash} --local --http-stat-ip-address=${ip} --http-port=${port} --dir=$HOME/.config/telegram-bot-api/
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|