Documentation ¶
Index ¶
- Variables
- func Help() string
- func New(logger *zap.Logger, config map[string]any, chainName string) (interfaces.FilteringRule, error)
- type Filter
- func (r *Filter) GetFilterName() string
- func (r *Filter) GetName() string
- func (r *Filter) HandleTGCommands(_ *zap.Logger, _ *telego.Bot, _ *telego.Message, _ []string) error
- func (r *Filter) IsFinal() bool
- func (r *Filter) IsStateful() bool
- func (r *Filter) Score(_ *telego.Bot, msg *telego.Message) *scoringResult.ScoringResult
- func (r *Filter) TGAdminPrefix() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrThresholdTooLow = errors.New("threshold for number of emojis must be positive")
Functions ¶
func New ¶
func New(logger *zap.Logger, config map[string]any, chainName string) (interfaces.FilteringRule, error)
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) GetFilterName ¶
func (*Filter) HandleTGCommands ¶
func (*Filter) IsStateful ¶
func (*Filter) Score ¶
func (r *Filter) Score(_ *telego.Bot, msg *telego.Message) *scoringResult.ScoringResult
func (*Filter) TGAdminPrefix ¶
Click to show internal directories.
Click to hide internal directories.