Adds basic telegram notification config
This commit is contained in:
parent
a331a45cff
commit
12c74a0f74
2 changed files with 17 additions and 1 deletions
|
@ -7,7 +7,18 @@ import (
|
|||
)
|
||||
|
||||
type Config struct {
|
||||
BirthdayFile string `yaml:"birthday_file"`
|
||||
BirthdayFile string `yaml:"birthday_file"`
|
||||
TelegramNotifications *TelegramNotificationsConfig `yaml:"telegram_notifications"`
|
||||
}
|
||||
|
||||
type TelegramNotificationsConfig struct {
|
||||
BotToken string `yaml:"bot_token"`
|
||||
ChannelID string `yaml:"channel_id"`
|
||||
}
|
||||
|
||||
// ToDo: to be implemented
|
||||
func (c *Config) IsValid() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func ReadConfig(path string) (*Config, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue