[Unit]
Description=Teleo Telegram Bot — Rio in ownership community
After=network.target teleo-pipeline.service
Wants=teleo-pipeline.service

[Service]
Type=simple
User=teleo
Group=teleo
WorkingDirectory=/opt/teleo-eval/telegram
ExecStart=/opt/teleo-eval/pipeline/.venv/bin/python3 /opt/teleo-eval/telegram/bot.py
Restart=always
RestartSec=10
Environment=PYTHONUNBUFFERED=1

# Security
NoNewPrivileges=true
ProtectSystem=strict
ReadWritePaths=/opt/teleo-eval/logs /opt/teleo-eval/workspaces/extract/inbox/queue /opt/teleo-eval/workspaces/extract/inbox/archive /opt/teleo-eval/workspaces/extract/inbox/null-result

[Install]
WantedBy=multi-user.target
