Documentation
¶
Index ¶
- type BotHandler
- type BotOptions
- type GoborgTG
- func (t *GoborgTG) AddCommand(botCommand *command_dto.BotCommand, handler handler.IHandler)
- func (t *GoborgTG) AddCommandWithMiddleware(botCommand *command_dto.BotCommand, handler handler.IHandler, ...)
- func (t *GoborgTG) AddHandler(handler handler.IHandler)
- func (t *GoborgTG) AddHandlerWithMiddleware(handler handler.IHandler, middleware ...handler.Middleware)
- func (t *GoborgTG) DeleteCommand()
- func (t *GoborgTG) GetCommand()
- func (t *GoborgTG) GetTypeMessage()
- func (t *GoborgTG) Notify() <-chan error
- func (t *GoborgTG) RunUpdate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotHandler ¶
type BotHandler struct { Handler handler.IHandler Middleware []handler.Middleware }
type BotOptions ¶
type BotOptions struct { Token string Ctx context.Context LoggerLevel logger.LevelLogger }
type GoborgTG ¶
type GoborgTG struct {
// contains filtered or unexported fields
}
func NewBot ¶
func NewBot(option BotOptions) *GoborgTG
func (*GoborgTG) AddCommand ¶
func (t *GoborgTG) AddCommand(botCommand *command_dto.BotCommand, handler handler.IHandler)
func (*GoborgTG) AddCommandWithMiddleware ¶
func (t *GoborgTG) AddCommandWithMiddleware(botCommand *command_dto.BotCommand, handler handler.IHandler, middleware ...handler.Middleware)
func (*GoborgTG) AddHandler ¶
func (*GoborgTG) AddHandlerWithMiddleware ¶
func (t *GoborgTG) AddHandlerWithMiddleware(handler handler.IHandler, middleware ...handler.Middleware)
func (*GoborgTG) DeleteCommand ¶
func (t *GoborgTG) DeleteCommand()
func (*GoborgTG) GetCommand ¶
func (t *GoborgTG) GetCommand()
func (*GoborgTG) GetTypeMessage ¶
func (t *GoborgTG) GetTypeMessage()
Click to show internal directories.
Click to hide internal directories.