Versions in this module Expand all Collapse all v0 v0.1.0 Jul 15, 2026 Changes in this version + var ErrUpdateSourceClosed = errors.New("update source closed") + var ToRunnable = lifecycle.ToRunnable + var WithStartTimeout = lifecycle.WithStartTimeout + var WithStopTimeout = lifecycle.WithStopTimeout + type Bot struct + func New(opts Options) (*Bot, error) + func (b *Bot) Client() client.ClientWithResponsesInterface + func (b *Bot) EventEmitter() eventemitter.EventEmitter + func (b *Bot) Handlers() *handlers.Registry + func (b *Bot) Logger() logger.Logger + func (b *Bot) Responder() *respond.Responder + func (b *Bot) Run(ctx context.Context) error + type Lifecycle = lifecycle.Lifecycle + type OptOptionsSetter func(o *Options) + func WithBotUsername(opt string) OptOptionsSetter + func WithClient(opt client.ClientWithResponsesInterface) OptOptionsSetter + func WithDefaultListenersEnabled(opt bool) OptOptionsSetter + func WithDefaultMiddlewareEnabled(opt bool) OptOptionsSetter + func WithEventEmitter(opt eventemitter.EventEmitter) OptOptionsSetter + func WithLogger(opt logger.Logger) OptOptionsSetter + func WithStartupTimeout(opt time.Duration) OptOptionsSetter + func WithUpdateSource(opt UpdateSource) OptOptionsSetter + type Options struct + func NewOptions(botToken string, options ...OptOptionsSetter) Options + func (o *Options) Validate() error + type Runnable = lifecycle.Runnable + type RunnableFunc = lifecycle.RunnableFunc + type RunnableOption = lifecycle.Option + type UpdateChan <-chan client.Update + type UpdateSource interface + UpdateChan func() <-chan client.Update