This commit is contained in:
shoopea 2019-05-04 18:43:04 +08:00
parent dc1289a876
commit 4f6a109fe8

8
td.go
View File

@ -132,14 +132,14 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
lastMsgTime = time.Unix(int64(m.Date), 0)
}
msgCount = msgCount + 1
if msgCount%1000 == 0 {
fmt.Printf("Waiting : %d messages retrieved from %s ...\n", msgCount, lastMsgTime.Format(time.RFC3339))
}
}
default:
log.Printf("getHistory : no handler for %s\n", msg.Content.GetMessageContentEnum())
}
if msgParsed%1000 == 0 {
fmt.Printf("Waiting : %d messages retrieved from %s ...\n", msgCount, lastMsgTime.Format(time.RFC3339))
}
}
} else {
lastMsgID64 = -1