This commit is contained in:
shoopea 2020-01-08 17:21:00 +08:00
parent bf66e43020
commit adaee2695c
2 changed files with 2 additions and 4 deletions

View File

@ -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)

4
job.go
View File

@ -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")