Documentation
¶
Overview ¶
Package channels defines the channel Sender abstraction and per-type config handling. A Sender takes a channel's config + an SMS and delivers it. v1 sender: telegram (shared bot). The registry starts empty; main registers the Telegram sender when a bot is configured.
Index ¶
Constants ¶
const (
TypeTelegram = "telegram"
)
Variables ¶
var ErrChannelUnbound = errors.New("channel binding invalid")
ErrChannelUnbound signals the recipient is permanently unreachable for this channel's current config (e.g. Telegram 403: bot blocked / can't initiate / chat not found) — retrying won't help; the forward engine clears the binding so the user is prompted to re-bind.
Functions ¶
func KnownType ¶
KnownType reports whether typ is a valid channel type (even if its sender isn't wired yet).
func ValidateConfig ¶
ValidateConfig checks a user-supplied config for a channel type.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry maps channel type -> Sender.
func NewRegistry ¶
func NewRegistry() *Registry