update bot rescan all query

This commit is contained in:
shoopea 2020-02-06 10:25:44 +08:00
parent 7995fa3e01
commit 87ceefaff4

1
bot.go
View File

@ -440,6 +440,7 @@ func botMsgRescanAll(m *tb.Message) {
p.Query = fmt.Sprintf("SELECT o.id FROM obj o WHERE o.obj_type_id = %d AND o.obj_sub_type_id = %d ORDER BY o.id ASC;", cacheObjType[`msg`], cacheObjSubType[`msg`])
}
log.Printf("botMsgRescanAll : Query : %s\n", p.Query)
p.MsgID64 = int64(m.ID)
p.ChatID64 = m.Chat.ID