WIP, but this is going to become my new blog CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
368 B

package main
import (
"log"
)
func sendNotification(text string) {
log.Println("Notification:", text)
if appConfig.Notifications.Telegram.Enabled {
err := sendTelegramMessage(text, appConfig.Notifications.Telegram.BotToken, appConfig.Notifications.Telegram.ChatID)
if err != nil {
log.Println("Failed to send Telegram notification:", err.Error())
}
}
}