fix overflow

This commit is contained in:
shoopea 2019-05-11 17:14:29 +08:00
parent ae70c7091a
commit 8a0ab2271a

2
td.go
View File

@ -170,6 +170,8 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
fmt.Printf("Overflow : %d messages retrieved out of %d dating back %s (%d) ...\n", msgCount, msgParsed, lastParsedTime.Format(time.RFC3339), lastParsedID64)
time.Sleep(5 * time.Second)
}
} else {
loopOverflow = 0
}
}
log.Printf("Exported %d messages.\n", msgCount)