From 37ca1294dee2266ff4490c9841363f22c79610ff Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 29 Dec 2019 11:15:24 +0800 Subject: [PATCH] test --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index bc62990..f8ea434 100644 --- a/td.go +++ b/td.go @@ -29,7 +29,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64) { for lastParsedID64 >= 0 { prevLastParsedID64 := lastParsedID64 - msgs, err := c.GetChatHistory(chatID64, lastParsedID64, 0, 99, false) + msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 99, false) if err != nil { if err.Error() == "timeout" { logOnError(err, "Waiting....")