From b17c5fcab67104a4e173f1049c27d0f6e9feba04 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 18:53:34 +0800 Subject: [PATCH] fix --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 2d5ff1f..504a727 100644 --- a/td.go +++ b/td.go @@ -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 {