scheduler

package
v0.0.0-...-3765fb9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDelMsgTask

func AddDelMsgTask(db *pg.DB, chatID int64, msgID int) error

func AddUpdateMsgExpireTask

func AddUpdateMsgExpireTask(db *pg.DB, blackListID, chatID int64, msgID int) error

func UpdateMsgExpireTaskDone

func UpdateMsgExpireTaskDone(db *pg.DB, blackListID int64) error

Types

type Scheduler

type Scheduler struct {
	*pg.DB
	*tgbotapi.BotAPI
}

func New

func New(db *pg.DB, bot *tgbotapi.BotAPI) *Scheduler

func (Scheduler) Run

func (s Scheduler) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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