Versions in this module Expand all Collapse all v1 v1.0.2 Jul 28, 2026 Changes in this version + type App struct + func New(settings Settings, opts ...Option) (*App, error) + func (a *App) Close() error + func (a *App) Command(name string, handler CommandHandler) + func (a *App) OnText(handler TextHandler) + func (a *App) Run(ctx context.Context) error + func (a *App) Send(ctx context.Context, delivery Delivery) (Receipt, error) + type CommandHandler func(context.Context, Conversation, ParsedCommand) error + type Conversation interface + Incoming func() Incoming + Respond func(ctx context.Context, delivery Delivery) (Receipt, error) + RespondText func(ctx context.Context, text string) (Receipt, error) + type Delivery struct + Body string + Kind MessageKind + Reply *ReplyContext + To Recipient + type Incoming struct + At time.Time + From string + ID string + Kind IncomingKind + Raw json.RawMessage + Text string + To Recipient + type IncomingKind string + const DirectMessage + const GroupMention + type MessageKind string + const Markdown + const PlainText + type Option func(*options) + func WithDedupWindow(window time.Duration) Option + func WithIntents(intents int) Option + func WithPrefix(prefix string) Option + func WithRetry(count int, delay time.Duration) Option + func WithUnknownCommand(handler CommandHandler) Option + type ParsedCommand struct + Name string + Original string + Params []string + type Receipt struct + At time.Time + ID string + type Recipient struct + ID string + Kind RecipientKind + type RecipientKind string + const ChannelRecipient + const DirectRecipient + const GroupRecipient + type ReplyContext struct + EventID string + MessageID string + Sequence int + type Settings struct + AppID string + AppSecret string + BaseEndpoint string + DefaultKind MessageKind + HTTPClient *http.Client + Logger *slog.Logger + Timeout time.Duration + TokenEndpoint string + type TextHandler func(context.Context, Conversation) error