Documentation ¶
Index ¶
- func CreateBot(options []bot.Option, token string) (*bot.Bot, error)
- func CreateBotOptions(appMode flags.AppMode, blockchainsService *blockchains.Service, ...) []bot.Option
- func RegisterHandlers(b *bot.Bot, hm *HandlerMatcher, defaultHandler *handlers.DefaultHandler, ...)
- 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 *botConfig.Config, ) []bot.Option
func RegisterHandlers ¶
func RegisterHandlers( b *bot.Bot, hm *HandlerMatcher, defaultHandler *handlers.DefaultHandler, userActionService *services.UserActionService, userWalletService *services.UserWalletService, feedbackService *services.FeedbackService, blockchainsService *blockchains.Service, config *botConfig.Config, )
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.