Adds telegram notification service and notifications services scaffold

This commit is contained in:
Miguel de la Cruz 2023-07-01 18:00:48 +02:00
parent 12c74a0f74
commit 8825837e14
3 changed files with 60 additions and 9 deletions

4
notification/service.go Normal file
View file

@ -0,0 +1,4 @@
package notification
type NotificationService interface {
}

View file

@ -0,0 +1,18 @@
package notification
import (
"git.ctrlz.es/mgdelacroix/birthdaybot/model"
"github.com/charmbracelet/log"
)
type TelegramNotificationService struct {
logger *log.Logger
config *model.TelegramNotificationsConfig
}
func NewTelegramNotificationService(logger *log.Logger, config *model.TelegramNotificationsConfig) *TelegramNotificationService {
return &TelegramNotificationService{
logger: logger,
config: config,
}
}