bot

package
v0.0.0-...-eb4b608 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Unlicense Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPoller

func GetPoller() telebot.Poller

func NewManagerService

func NewManagerService(
	chatsPluginsService model.ChatsPluginsService,
	pluginService model.PluginService,
) (*managerService, error)

func OnError

func OnError(err error, c telebot.Context)

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

type Gobot

type Gobot struct {
	Telebot *telebot.Bot
}

func New

func New(db *sqlx.DB) (*Gobot, error)

Jump to

Keyboard shortcuts

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