Documentation
¶
Overview ¶
Package notify provides concrete notification delivery adapters (currently Telegram). Channels are configured at runtime via the settings store — no environment variables or restarts needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramConfig ¶
type TelegramConfig struct {
BotToken string `json:"bot_token"`
ChatID string `json:"chat_id"`
Enabled bool `json:"enabled"`
}
TelegramConfig holds the Telegram bot configuration.
type TelegramSender ¶
type TelegramSender struct {
// contains filtered or unexported fields
}
TelegramSender sends notifications to a Telegram chat.
func NewTelegramSender ¶
func NewTelegramSender(configFn func() *TelegramConfig) *TelegramSender
NewTelegramSender creates a Telegram sender. The configFn is called on each send to get the latest config from the settings store — this means config changes take effect immediately without restart.
Click to show internal directories.
Click to hide internal directories.