From adaee2695c5714dfae957ed11d6958f2f5a26914 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 8 Jan 2020 17:21:00 +0800 Subject: [PATCH] fix --- cron.go | 2 +- job.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cron.go b/cron.go index f50b86a..8c4f5d8 100644 --- a/cron.go +++ b/cron.go @@ -28,7 +28,7 @@ func cronSendWarReport() { muxClients.RLock() for _, c := range clients { if c.Active { - p := JobPayloadFwdMsg{ + p := JobPayloadMsgFwd{ ChatID64: cfg.Bot.Reportchat, } b, _ := json.Marshal(&p) diff --git a/job.go b/job.go index 15cc352..da93a7e 100644 --- a/job.go +++ b/job.go @@ -547,7 +547,7 @@ func jobMsgFwd(j Job) { return } -func jobMsgDel(j Job) { +func jobMsgDelete(j Job) { var p JobPayloadMsgDel err := setJobStart(j.ID64) logOnError(err, "jobMsgDel : setJobStart") @@ -558,8 +558,6 @@ func jobMsgDel(j Job) { msg, err := getObjMsg(j.Trigger) logOnError(err, "jobMsgDel : getObjMsg msg") - clientFwdCWMsg(j.UserID64, msg.ID64, msg.ChatID64, p.ChatID64) - err = setJobDone(j.ID64) logOnError(err, "jobMsgDel : setJobDone")