interfaces

package
v0.0.0-...-4f983b9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilteringRule

type FilteringRule interface {
	Score(*telego.Bot, *telego.Message) *scoringResult.ScoringResult
	IsStateful() bool
	GetName() string
	GetFilterName() string
	IsFinal() bool
	TGAdminPrefix() string
	HandleTGCommands(*zap.Logger, *telego.Bot, *telego.Message, []string) error
}

type HelpFunc

type HelpFunc func() string

type InitFunc

type InitFunc func(*zap.Logger, map[string]any, string) (FilteringRule, error)

type StatefulFilter

type StatefulFilter interface {
	stateful.Stateful
	FilteringRule
	RemoveState(int64) error
	UnbanUser(int64) error
}

Jump to

Keyboard shortcuts

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