This commit is contained in:
shoopea 2020-06-25 19:01:21 +02:00
parent 3354a118e3
commit 27f43cc95e

5
job.go
View File

@ -398,13 +398,14 @@ func jobRescan(j Job) {
start := time.Now()
milestone := time.Now()
log.Printf("jobRescan : getting message list")
ids := getSQLListID64(p.Query)
log.Printf("jobRescan : %d messages.", len(ids))
if len(ids) > 1 {
txt := fmt.Sprintf("Rescanning %d messages.", len(ids))
m := TGCommand{
Type: commandReplyMsg,
Text: txt,
Text: fmt.Sprintf("Rescanning %d messages.", len(ids)),
FromMsgID64: p.MsgID64,
FromChatID64: p.ChatID64,
}