handlers

package
v0.0.0-...-2e430cb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHandler

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

func NewDefaultHandler

func NewDefaultHandler(
	logger logger.Logger,
	availableCommands []commands.Command,
	fallbackCommand commands.FallbackCommand,
) *DefaultHandler

func (*DefaultHandler) Handle

func (handler *DefaultHandler) Handle(
	ctx context.Context,
	bot *bot.Bot,
	update *models.Update,
)

type TelegramMessagesHandler

type TelegramMessagesHandler interface {
	Handle(ctx context.Context, bot *bot.Bot, update *models.Update)
}

Jump to

Keyboard shortcuts

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