From a983da04a26157eb1bd522779a2bdfb1a2521758 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 12 Dec 2019 17:49:18 +0800 Subject: [PATCH] fix ChatWarsMessage --- cron.go | 2 +- def.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"`