bot

package
v0.0.0-...-d934cc3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound    = errors.New("not found")
	ErrBotNotFound = errors.New("bot not found")
	ErrTgAuth401   = errors.New(`telego: health check: telego: getMe(): api: 401 "Unauthorized"`)
)

Functions

This section is empty.

Types

type BotService

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

func NewBotService

func NewBotService(c *config.ServiceConfig, l *zap.SugaredLogger) *BotService

func (*BotService) StartBot

func (bs *BotService) StartBot(botId int64, token string) error

func (*BotService) StopBot

func (bs *BotService) StopBot(token string) error

func (*BotService) TokenHealthCheck

func (bs *BotService) TokenHealthCheck(token string) (bool, error)

Jump to

Keyboard shortcuts

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