A Telegram Bot written in Python for the great Strichliste project. The Strichliste Telegram Bridge runs well as systemd daemon or inside a docker container like strichliste-docker we also build.
- Get bot token form Telegram Bot Father
- Map the config file and authorized users file to the container
services:
telegram:
image: ghcr.io/westwoodlabs/strichliste-telegram
restart: unless-stopped
volumes:
- ./data/telegram/authorizedUsers.json:/usr/src/app/authorizedUsers.json
- ./data/telegram/config.py:/usr/src/app/config.py
- Rename config.default.py to config.py and change parameters
- Start script ./bot.py
[Unit]
Description=Strichliste Telegram Bridge
After=syslog.target
After=network.target
[Service]
Type=simple
User=sltgbridge
Group=sltgbridge
WorkingDirectory=/opt/StrichlisteTelegramBridge
ExecStart=/opt/StrichlisteTelegramBridge/SlTgBridge.py
SyslogIdentifier=sltgbridge
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target