From 4d510021e55baa7c65ddb28cd7edc04504405192 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 6 May 2019 11:10:46 +0800 Subject: [PATCH] speedup --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 75ee25c..31d7cf2 100644 --- a/td.go +++ b/td.go @@ -84,7 +84,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { fmt.Printf("Exporting historic messages for chat %d from user %d ...\n", chat, *senderUserID64) for lastParsedID64 >= 0 { - msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 50, false) + msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 99, false) if err != nil { if err.Error() == "timeout" { logOnError(err, "Waiting...")