bot

package
v0.0.0-...-3c1c031 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Unlicense Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManagerService

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

func OnError

func OnError(err error)

func PrintMessage

func PrintMessage(c *ext.Context)

Types

type Gobot

type Gobot struct {
	GoTgBot *gotgbot.Bot
	// contains filtered or unexported fields
}

func New

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

func (*Gobot) Start

func (b *Gobot) Start()

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(allowService model.AllowService, chatsUsersService model.ChatsUsersService, managerService model.ManagerService, userService model.UserService) *Processor

func (*Processor) ProcessUpdate

func (p *Processor) ProcessUpdate(d *ext.Dispatcher, b *gotgbot.Bot, ctx *ext.Context) error

Jump to

Keyboard shortcuts

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