This commit is contained in:
shoopea 2020-01-17 12:28:00 +08:00
parent 8df47bb0af
commit ecc08fabdb

4
job.go
View File

@ -1536,13 +1536,13 @@ func jobGWithdraw(j Job) {
FromChatID64: cwm.Msg.ChatID64,
}
TGCmdQueue <- cmd
p.CleanupMsg = append(p.CleanupMsg, m)
p.CleanupMsg = append(p.CleanupMsg, *m)
b, err := json.Marshal(p)
err = setJobPayload(j.ID64, b)
logOnError(err, "jobGWithdraw : setJobPayload")
err = rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
logOnError(err, "jobGWithdraw : rescheduleJob")
setJobCallback(j.ID64, int64(bot.Me.ID), cacheObjTypeId[`msg_job_gwithdraw_ack`])
setJobCallback(j.ID64, int64(bot.Me.ID), cacheObjSubType[`msg_job_gwithdraw_ack`])
return
} else {
p.Validated = true