Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMessage = interfaces.ErrNoMessage
Functions ¶
This section is empty.
Types ¶
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 MessageEvent ¶
type MessageEvent = interfaces.MessageEvent
MessageEvent represents a processed message event.
type PeerResolver ¶
type PeerResolver = interfaces.PeerResolver
PeerResolver resolves chat/user IDs to InputPeer.
type SessionContext ¶
type SessionContext = interfaces.SessionContext
SessionContext wraps a Session with a request context.
func NewSessionContext ¶
func NewSessionContext(s *Session, ctx context.Context) *SessionContext
Click to show internal directories.
Click to hide internal directories.