fix delete

This commit is contained in:
shoopea 2020-01-26 22:04:24 +08:00
parent 64d88d6c4f
commit 78c749ccdd
2 changed files with 3 additions and 7 deletions

3
bot.go
View File

@ -672,7 +672,8 @@ func botGStock(m *ChatWarsMessage) {
TGCmdQueue <- c TGCmdQueue <- c
return return
} }
userID64 := clt.TGUserID64 userID64 := cfg.Bot.Admin
//userID64 := clt.TGUserID64
clt.Mux.Unlock() clt.Mux.Unlock()
p := JobPayloadGStock{ p := JobPayloadGStock{

7
job.go
View File

@ -2051,12 +2051,7 @@ func jobGetVault(j Job) {
/* clean up the messages */ /* clean up the messages */
for _, d := range p.CleanupMsg { for _, d := range p.CleanupMsg {
delmsg := tb.StoredMessage{ clientDelTGMsg(j.UserID64, d.ID64, d.ChatID64)
MessageID: fmt.Sprintf("%d", d.ID64),
ChatID: d.ChatID64,
}
err = bot.Delete(delmsg)
logOnError(err, "jobGetVault : Delete")
} }
/* wake up the callback */ /* wake up the callback */