Installation¶
Über Docker Compose mit dem Profile telegram (oder
full) dazuschalten. Braucht eine eigene telegram-config.yaml (u. a. Bot-Token, siehe
Konfiguration).
Native Installation¶
curl -fsSL https://github.com/NurPech/Hannah/raw/refs/heads/master/telegram/deploy/install.sh | sudo bash
Config: /etc/hannah-telegram/config.yaml (u. a. Bot-Token). Die Vorlage liegt bereits im
Release, im Installationsverzeichnis — kopieren, anpassen, Dienst starten:
sudo cp /opt/hannah/telegram/config.example.yaml /etc/hannah-telegram/config.yaml
sudo nano /etc/hannah-telegram/config.yaml
sudo systemctl enable --now hannah-telegram
Prüfen, ob der Dienst wirklich läuft:
sudo systemctl status hannah-telegram
sudo journalctl -u hannah-telegram -f
Zum Deinstallieren (Config bleibt erhalten), Script liegt bereits im Installationsverzeichnis:
sudo bash /opt/hannah/telegram/deploy/install.sh --uninstall
Automatisch aktuell halten¶
Optional — nur relevant, wenn du AutoDeploy einsetzt.
Vorher den Sicherheitshinweis zu post_install lesen.
Eintrag für AutoDeploy (/etc/hannah/autodeploy.yaml):
- name: telegram
channel: telegram-stable
install_dir: /opt/hannah/telegram
service: hannah-telegram
post_install: "/opt/hannah/telegram/venv/bin/pip install --upgrade -q -r /opt/hannah/telegram/requirements.txt"