diff --git a/cron.go b/cron.go index af40319..13b2276 100644 --- a/cron.go +++ b/cron.go @@ -11,7 +11,7 @@ func startCron() *cron.Cron { c := cron.New(cron.WithLocation(time.UTC)) c.AddFunc("@every 1m", cronSendReport) c.Start() - return + return c } func stopCron(c *cron.Cron) { diff --git a/def.go b/def.go index 0ae012b..92ca33d 100644 --- a/def.go +++ b/def.go @@ -101,6 +101,7 @@ type ChatWarsCallback struct { } type ChatWarsMessage struct { + ObjID64 int64 `json:"obj_id"` TGUserID64 int64 `json:"tg_user_id"` TGSenderUserID64 int64 `json:"tg_sender_user_id"` Date time.Time `json:"date"`