Documentation ¶
Index ¶
- func GetPoller() telebot.Poller
- func NewManagerService(chatsPluginsService model.ChatsPluginsService, ...) (*managerService, error)
- func OnError(err error, c telebot.Context)
- func PrintMessage(next telebot.HandlerFunc) telebot.HandlerFunc
- type Dispatcher
- func (d *Dispatcher) NullRoute(_ telebot.Context) error
- func (d *Dispatcher) OnCallback(c telebot.Context) error
- func (d *Dispatcher) OnInlineQuery(c telebot.Context) error
- func (d *Dispatcher) OnText(c telebot.Context) error
- func (d *Dispatcher) OnUserJoined(c telebot.Context) error
- func (d *Dispatcher) OnUserLeft(c telebot.Context) error
- type Gobot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManagerService ¶
func NewManagerService( chatsPluginsService model.ChatsPluginsService, pluginService model.PluginService, ) (*managerService, error)
func PrintMessage ¶
func PrintMessage(next telebot.HandlerFunc) telebot.HandlerFunc
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(allowService model.AllowService, chatsUsersService model.ChatsUsersService, managerService model.ManagerService, userService model.UserService) *Dispatcher
func (*Dispatcher) NullRoute ¶
func (d *Dispatcher) NullRoute(_ telebot.Context) error
NullRoute is a special route that just ignores the message but will still fire middleware
func (*Dispatcher) OnCallback ¶
func (d *Dispatcher) OnCallback(c telebot.Context) error
func (*Dispatcher) OnInlineQuery ¶
func (d *Dispatcher) OnInlineQuery(c telebot.Context) error
func (*Dispatcher) OnText ¶
func (d *Dispatcher) OnText(c telebot.Context) error
func (*Dispatcher) OnUserJoined ¶
func (d *Dispatcher) OnUserJoined(c telebot.Context) error
func (*Dispatcher) OnUserLeft ¶
func (d *Dispatcher) OnUserLeft(c telebot.Context) error
Click to show internal directories.
Click to hide internal directories.