This commit is contained in:
shoopea 2020-01-17 12:24:49 +08:00
parent b11d455804
commit 95370ec747

4
job.go
View File

@ -1528,7 +1528,7 @@ func jobGWithdraw(j Job) {
cmd := TGCommand{
Type: commandReplyMsg,
Text: "You cannot validate your own withdrawl",
FromMsgID64: cwm.Msg.MsgID64,
FromMsgID64: cwm.Msg.ID64,
FromChatID64: cwm.Msg.ChatID64,
}
TGCmdQueue <- cmd
@ -1552,7 +1552,7 @@ func jobGWithdraw(j Job) {
}
p.CleanupMsg = []ChatWarsMessage{}
delmsg := tb.StoredMessage{
MessageID: fmt.Sprintf("%d", cwm.Msg.MsgID64),
MessageID: fmt.Sprintf("%d", cwm.Msg.ID64),
ChatID: cwm.Msg.ChatID64,
}
err = bot.Delete(delmsg)