chore: Added telegram config in .env.example

This commit is contained in:
2025-01-17 12:21:38 +03:00
parent 836de44978
commit 16be8d5ff8
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,8 @@ func main() {
log.Fatalln("Unable to connect to telegram", err)
}
log.Printf("Tracking schedule for week %s, group %s\n", config.AppConfig.Schedule.StartDate, config.AppConfig.Schedule.GroupId)
c := cron.New(cron.WithSeconds())
c.AddFunc(config.AppConfig.CronPattern, schedule.PollSchedule)
c.Run()