handlers

package
v0.0.0-...-5c90490 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BanChannelOfForwardedMessageHandler

type BanChannelOfForwardedMessageHandler struct {
	// contains filtered or unexported fields
}

func NewBanChannelOfForwardedMessageHandler

func NewBanChannelOfForwardedMessageHandler(
	sender sender,
	channelBannner channelBannner,
	newlyDisallowedMessageCleaner newlyDisallowedMessageCleaner,
) *BanChannelOfForwardedMessageHandler

func (BanChannelOfForwardedMessageHandler) Handle

type BotPrivateMessageHandler

type BotPrivateMessageHandler struct {
	// contains filtered or unexported fields
}

func NewBotPrivateMessageHandler

func NewBotPrivateMessageHandler(
	sender sender,
	adminChecker adminChecker,
	commandHandler, regularMessageHandler, stickerMessageHandler messageHandler,
) *BotPrivateMessageHandler

func (BotPrivateMessageHandler) Handle

func (h BotPrivateMessageHandler) Handle(message *tgbotapi.Message)

type GroupMessageHandler

type GroupMessageHandler struct {
	// contains filtered or unexported fields
}

func NewGroupMessageHandler

func NewGroupMessageHandler(
	chatAdder chatAdder,
	offendingMessageHandler offendingMessageHandler,
	filterPassChecker filterPassChecker,
	messageHistoryAdder messageHistoryAdder,
) *GroupMessageHandler

func (*GroupMessageHandler) Handle

func (h *GroupMessageHandler) Handle(message *tgbotapi.Message)

type StickerPrivateMessageHandler

type StickerPrivateMessageHandler struct {
	// contains filtered or unexported fields
}

func NewStickerPrivateMessageHandler

func NewStickerPrivateMessageHandler(snd sender, sa stickerAdder) *StickerPrivateMessageHandler

func (StickerPrivateMessageHandler) Handle

func (h StickerPrivateMessageHandler) Handle(message *tgbotapi.Message)

type UpdateHandler

type UpdateHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateHandler

func NewUpdateHandler(
	botPrivateMessageHandler, groupMessageHandler messageHandler,
) *UpdateHandler

func (UpdateHandler) Handle

func (h UpdateHandler) Handle(update *tgbotapi.Update)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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