cron

package
v0.2.2-beta Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoChatToBroadcast = errors.Business("No chats to broadcast", "CRON:001")

Functions

This section is empty.

Types

type Jobs

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

func New

func New(ctx context.Context, cfg config.AppConfig, bot *telebot.Bot, youtube ytube.Service) (Jobs, error)

func (Jobs) LastVideos

func (j Jobs) LastVideos(ctx context.Context) error

func (Jobs) Start

func (j Jobs) Start(ctx context.Context) error

type MessageBuilder

type MessageBuilder func() ([]interface{}, error)

type Sendable

type Sendable interface {
	ToBotContent() (interface{}, error)
}

Jump to

Keyboard shortcuts

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