pool_bot

package
v0.0.0-...-7af3340 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBot

func CreateBot(
	options []bot.Option,
	token string,
) (*bot.Bot, error)

func CreateBotOptions

func CreateBotOptions(
	appMode flags.AppMode,
	blockchainsService *blockchains.Service,
	userService *services.UserService,
	userActionService *services.UserActionService,
	userWalletService *services.UserWalletService,
	languages *languages.Languages,
	defaultHandler *handlers.DefaultHandler,
	config *bot_config.Config,
) ([]bot.Option, *handlers.EnterWalletHandler, *handlers.PoolStatsHandler, *handlers.RemoveWalletHandler)

func RegisterHandlers

func RegisterHandlers(
	b *bot.Bot,
	hm *HandlerMatcher,
	defaultHandler *handlers.DefaultHandler,
	userService *services.UserService,
	userActionService *services.UserActionService,
	userWalletService *services.UserWalletService,
	blockchainsService *blockchains.Service,
	enterWalletHandler *handlers.EnterWalletHandler,
	poolStatsHandler *handlers.PoolStatsHandler,
	removeWalletHandler *handlers.RemoveWalletHandler,
	localizers []languages.LocalizersItem,
	config *bot_config.Config,
)

func SetBotCommands

func SetBotCommands(ctx context.Context, b *bot.Bot, localizers []languages.LocalizersItem) error

func SetBotDescription

func SetBotDescription(ctx context.Context, b *bot.Bot, localizers []languages.LocalizersItem) error

Types

type HandlerMatcher

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

func NewHandlerMatcher

func NewHandlerMatcher(
	ctx context.Context,
	userActionService *services.UserActionService,
) *HandlerMatcher

func (*HandlerMatcher) MatchUserAction

func (m *HandlerMatcher) MatchUserAction(action services.UserAction) bot.MatchFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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