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
|
||||
return
|
||||
}
|
||||
userID64 := clt.TGUserID64
|
||||
userID64 := cfg.Bot.Admin
|
||||
//userID64 := clt.TGUserID64
|
||||
clt.Mux.Unlock()
|
||||
|
||||
p := JobPayloadGStock{
|
||||
|
7
job.go
7
job.go
@ -2051,12 +2051,7 @@ func jobGetVault(j Job) {
|
||||
|
||||
/* clean up the messages */
|
||||
for _, d := range p.CleanupMsg {
|
||||
delmsg := tb.StoredMessage{
|
||||
MessageID: fmt.Sprintf("%d", d.ID64),
|
||||
ChatID: d.ChatID64,
|
||||
}
|
||||
err = bot.Delete(delmsg)
|
||||
logOnError(err, "jobGetVault : Delete")
|
||||
clientDelTGMsg(j.UserID64, d.ID64, d.ChatID64)
|
||||
}
|
||||
|
||||
/* wake up the callback */
|
||||
|
Loading…
Reference in New Issue
Block a user