fix
This commit is contained in:
parent
bf66e43020
commit
adaee2695c
2
cron.go
2
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)
|
||||
|
4
job.go
4
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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user