This commit is contained in:
shoopea 2019-05-04 18:53:34 +08:00
parent bc218d176f
commit b17c5fcab6

4
td.go
View File

@ -88,10 +88,10 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
if err != nil {
if err.Error() == "timeout" {
logOnError(err, "Waiting...")
fmt.Printf("Waiting : %d messages retrieved from %s ...\n", msgCount, lastMsgTime.Format(time.RFC3339))
fmt.Printf("Waiting : %d messages retrieved out of %d dating back %s ...\n", msgCount, msgParsed, lastParsedTime.Format(time.RFC3339))
} else {
logOnError(err, "Cannot get history")
lastMsgID64 = -1
lastParsedID64 = -1
}
} else if msgs.TotalCount > 0 {
for _, msg := range msgs.Messages {