Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) CmdBuild ¶
func (h *Handlers) CmdBuild() bot.HandlerFunc
CmdBuild handles the /build command to manually trigger RSS feed rebuild.
func (*Handlers) CmdInfo ¶ added in v0.1.0
func (h *Handlers) CmdInfo() bot.HandlerFunc
CmdInfo handles the /info command to provide information about the podcast feed
func (*Handlers) CmdStart ¶
func (h *Handlers) CmdStart() bot.HandlerFunc
CmdStart handles the /start command.
func (*Handlers) Error ¶
func (h *Handlers) Error() bot.ErrorsHandler
func (*Handlers) Url ¶
func (h *Handlers) Url() bot.HandlerFunc
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware represents a Telegram bot middleware.
func NewMiddleware ¶
func NewMiddleware(cfg config.Telegram, log *slog.Logger) *Middleware
NewMiddleware creates a new Middleware instance.
func (*Middleware) WithAllowedUsers ¶
func (m *Middleware) WithAllowedUsers() bot.Middleware
WithAllowedUsers is a middleware that blocks updates from users not in the allowed users list.
type Notifications ¶
type Notifications struct {
// contains filtered or unexported fields
}
Notifications handles sending notifications to users about process updates.
func NewNotifications ¶
NewNotifications creates a new Notifications instance.
func (*Notifications) Start ¶
func (n *Notifications) Start(ctx context.Context)
Start begins listening for process updates and sending notifications.