handler

package
v0.0.0-...-d07f01d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Bot     *telebot.Bot
	Config  *config.Config
	DB      *storage.DB
	Fetcher *fetcher.Fetcher
	AdminID int64
}

func (*Handler) OnAddRegexReplacement

func (h *Handler) OnAddRegexReplacement(c telebot.Context) error

func (*Handler) OnAddReplacement

func (h *Handler) OnAddReplacement(c telebot.Context) error

func (*Handler) OnCheck

func (h *Handler) OnCheck()

OnCheck is the scheduler tick. It polls only feeds that are currently due and reschedules itself after POLL_TICK. Because due-ness lives in the database, a process restart never causes a mass re-fetch (FRB037).

func (*Handler) OnDeleteReplacement

func (h *Handler) OnDeleteReplacement(c telebot.Context) error

func (*Handler) OnList

func (h *Handler) OnList(c telebot.Context) error

func (*Handler) OnListAll

func (h *Handler) OnListAll(c telebot.Context) error

func (*Handler) OnListReplacements

func (h *Handler) OnListReplacements(c telebot.Context) error

func (*Handler) OnStart

func (h *Handler) OnStart(c telebot.Context) error

func (*Handler) OnSubscribe

func (h *Handler) OnSubscribe(c telebot.Context) error

func (*Handler) OnUnsubscribe

func (h *Handler) OnUnsubscribe(c telebot.Context) error

type TemplateData

type TemplateData struct {
	Title      string
	FeedTitle  string
	Content    string
	PostLink   string
	PostDomain string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL