hasEmoji

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrThresholdTooLow = errors.New("threshold for number of emojis must be positive")

Functions

func Help

func Help() string

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 (r *Filter) GetFilterName() string

func (*Filter) GetName

func (r *Filter) GetName() string

func (*Filter) HandleTGCommands

func (r *Filter) HandleTGCommands(_ *zap.Logger, _ *telego.Bot, _ *telego.Message, _ []string) error

func (*Filter) IsFinal

func (r *Filter) IsFinal() bool

func (*Filter) IsStateful

func (r *Filter) IsStateful() bool

func (*Filter) Score

func (*Filter) TGAdminPrefix

func (r *Filter) TGAdminPrefix() string

Jump to

Keyboard shortcuts

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