fix delete
This commit is contained in:
parent
64d88d6c4f
commit
78c749ccdd
3
bot.go
3
bot.go
@ -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
7
job.go
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user