Documentation
¶
Overview ¶
Package bot runs snagbox's Telegram intake bot: allowlisted users send text and photos, which become inbox issues that can be tagged to a project via inline buttons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot is the Telegram intake bot. It turns allowlisted users' messages into inbox issues and offers inline buttons to tag them to a project.
func New ¶
func New(cfg config.Config, st *store.Store, bl *blob.Store, loginSvc LoginLinkService, logger *slog.Logger) (*Bot, error)
New builds a Bot, wiring the Telegram client, its handlers and the album buffer. loginSvc may be nil to disable the /login dashboard flow. It does not start polling; call Start for that.
type LoginLinkService ¶
type LoginLinkService interface {
CreateLoginLink(ctx context.Context, in authkit.CreateLoginLinkInput) (authkit.CreateLoginLinkOutput, error)
}
LoginLinkService issues bot-first login links for the admin dashboard. It is satisfied by *authkit.AuthService and may be nil when login is disabled.