mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 22:39:22 +01:00
19 lines
592 B
Go
19 lines
592 B
Go
package model
|
|
|
|
// NotifTelegram holds Telegram notification configuration details
|
|
type NotifTelegram struct {
|
|
Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"`
|
|
TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"`
|
|
ChatIDs []int64 `yaml:"chatIDs,omitempty" json:"chatIDs,omitempty" validate:"required"`
|
|
}
|
|
|
|
// GetDefaults gets the default values
|
|
func (s *NotifTelegram) GetDefaults() *NotifTelegram {
|
|
return nil
|
|
}
|
|
|
|
// SetDefaults sets the default values
|
|
func (s *NotifTelegram) SetDefaults() {
|
|
// noop
|
|
}
|