From 8a0ab2271a8a4611cee6cba3171ad37e1c24355c Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 11 May 2019 17:14:29 +0800 Subject: [PATCH] fix overflow --- td.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td.go b/td.go index e98b8d9..bafbc3e 100644 --- a/td.go +++ b/td.go @@ -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)