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 {