Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2026 Changes in this version + var ErrNoChatID = errors.New("telegram: no default notify chat ID configured") + var ErrNotInitialized = errors.New("telegram: bot not initialized") + func AuthMiddleware(allowedIds []int64) bot.Middleware + func Init(cfg Config) error + func Notify(msg string) error + func Start(ctx context.Context) + type Bot struct + func GetBot() *Bot + func NewBot(cfg Config) (*Bot, error) + func (b *Bot) Notify(msg string) error + func (b *Bot) RegisterHandler(handlerType bot.HandlerType, pattern string, matchType bot.MatchType, ...) string + type Config struct + BotToken string + ChatID string