core

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMessage = interfaces.ErrNoMessage

Functions

This section is empty.

Types

type Command

type Command = interfaces.Command

Command represents a registered command.

type CommandContext

type CommandContext = interfaces.CommandContext

CommandContext is passed to every command handler.

type Emitter

type Emitter = interfaces.Emitter

Emitter is the subset of the event bus that plugins/commands need.

type Error

type Error = interfaces.Error

type Handler

type Handler = interfaces.Handler

Handler is the signature for command handlers.

type Logger

type Logger = interfaces.Logger

Logger is the minimal logging interface.

type MessageEvent

type MessageEvent = interfaces.MessageEvent

MessageEvent represents a processed message event.

type Middleware

type Middleware = interfaces.Middleware

Middleware wraps a handler.

type PeerResolver

type PeerResolver = interfaces.PeerResolver

PeerResolver resolves chat/user IDs to InputPeer.

type Session

type Session = interfaces.Session

Session holds per-(user,chat) conversation state.

type SessionContext

type SessionContext = interfaces.SessionContext

SessionContext wraps a Session with a request context.

func NewSessionContext

func NewSessionContext(s *Session, ctx context.Context) *SessionContext

Jump to

Keyboard shortcuts

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