Archived
1
0
Fork 0

Add Telegram Messenger notifications

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-23 18:12:44 +01:00
parent e67ab63ca8
commit 0a9ae46d19
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
11 changed files with 255 additions and 39 deletions

View file

@ -125,6 +125,13 @@ func main() {
}
notifiers = append(notifiers, twitterNotifier)
}
if config.HasTelegram() {
telegramNotifier, err := NewTelegramNotifier(&config.TelegramConfig, db)
if err != nil {
log.Fatalf("cannot create telegram client: %s", err)
}
notifiers = append(notifiers, telegramNotifier)
}
}
// Group links by shop