mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
44 lines
952 B
Markdown
44 lines
952 B
Markdown
# <center>Telegram</center>
|
|
---
|
|
|
|
## Beschreibung
|
|
Mit diesem Plugin ist es moeglich, Telegram-Nachrichten für POCSAG-Alarmierungen zu senden.
|
|
Außerdem werden Locations versendet, wenn die Felder `lat` und `lon` im Paket definiert sind. (beispielsweise durch das [Geocoding](../modul/geocoding.md) Modul)
|
|
|
|
## Unterstütze Alarmtypen
|
|
- Pocsag
|
|
|
|
## Resource
|
|
`telegram`
|
|
|
|
## Konfiguration
|
|
|
|
|Feld|Beschreibung|Default|
|
|
|----|------------|-------|
|
|
|message|Format der Nachricht||
|
|
|botToken|Der Api-Key des Telegram-Bots||
|
|
|chatIds|Liste mit Chat-Ids der Empfängers / der Emfänger-Gruppen||
|
|
|
|
**Beispiel:**
|
|
```yaml
|
|
- type: plugin
|
|
name: Telegram Plugin
|
|
res: telegram
|
|
config:
|
|
message: "{RIC}({SRIC})\n{MSG}"
|
|
botToken: "BOT_TOKEN"
|
|
chatIds:
|
|
- "CHAT_ID"
|
|
```
|
|
|
|
---
|
|
## Modul Abhängigkeiten
|
|
Aus dem Modul [Geocoding](../modul/geocoding.md) (optional):
|
|
|
|
- `lat`
|
|
- `lon`
|
|
|
|
---
|
|
## Externe Abhängigkeiten
|
|
- python-telegram-bot
|