Documentation
¶
Index ¶
- func CreateBot(options []bot.Option, token string) (*bot.Bot, error)
- func CreateBotOptions(appMode flags.AppMode, blockchainsService *blockchains.Service, ...) ([]bot.Option, *handlers.EnterWalletHandler, *handlers.PoolStatsHandler, ...)
- func RegisterHandlers(b *bot.Bot, hm *HandlerMatcher, defaultHandler *handlers.DefaultHandler, ...)
- func SetBotCommands(ctx context.Context, b *bot.Bot, localizers []languages.LocalizersItem) error
- func SetBotDescription(ctx context.Context, b *bot.Bot, localizers []languages.LocalizersItem) error
- type HandlerMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 SetBotDescription ¶
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
Click to show internal directories.
Click to hide internal directories.