aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier/telegram
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-09-10 17:33:54 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2024-09-10 17:33:54 +0100
commit9d04ff6a4d1dde541a0253e0db59957c69fec4cf (patch)
tree70c7f9a2e6b64eef21e5efe78012d2e3261f4de0 /internal/notifier/telegram
parent6fb41ab9b491a257b027bf8a3c8a0828dc681b9a (diff)
downloaddonetick-main.tar.gz
donetick-main.tar.bz2
donetick-main.zip
WIP: genericize notifier as interfaceHEADmain
Diffstat (limited to '')
-rw-r--r--internal/notifier/telegram/telegram.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/notifier/telegram/telegram.go b/internal/notifier/telegram/telegram.go
index 3f064b6..eaa89d1 100644
--- a/internal/notifier/telegram/telegram.go
+++ b/internal/notifier/telegram/telegram.go
@@ -19,7 +19,7 @@ type TelegramNotifier struct {
}
func NewTelegramNotifier(config *config.Config) *TelegramNotifier {
- bot, err := tgbotapi.NewBotAPI(config.Telegram.Token)
+ bot, err := tgbotapi.NewBotAPI(config.Notifiers.Telegram.Token)
if err != nil {
fmt.Println("Error creating bot: ", err)
return nil