fix job msg del
This commit is contained in:
parent
8603af3768
commit
b422b37eb4
4
job.go
4
job.go
@ -620,8 +620,8 @@ func jobMsgDelete(j Job) {
|
||||
}
|
||||
} else if p.ObjMsgID64 != 0 {
|
||||
if p.Delay == 0 {
|
||||
obj, err := getObjMsg(j.Trigger)
|
||||
logOnError(err, "jobMsgDelete : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
|
||||
obj, err := getObjMsg(p.ObjMsgID64)
|
||||
logOnError(err, "jobMsgDelete : getObjMsg("+strconv.FormatInt(p.ObjMsgID64, 10)+")")
|
||||
clientDelTGMsg(j.UserID64, obj.ID64, obj.ChatID64)
|
||||
} else {
|
||||
p.Delay = 0
|
||||
|
Loading…
Reference in New Issue
Block a user