Add Telegram Messenger notifications
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
e67ab63ca8
commit
0a9ae46d19
11 changed files with 255 additions and 39 deletions
7
main.go
7
main.go
|
@ -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
|
||||
|
|
Reference in a new issue