From a0d816e60ef5ea7938c408500c94ce659f03a25f Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 19:47:06 +0800 Subject: [PATCH] decrease hist size --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index cfce282..e1a55a5 100644 --- a/td.go +++ b/td.go @@ -135,7 +135,7 @@ func getHistory(c *tdlib.Client) { } for lastMsgID64 >= 0 { - msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 50, false) + msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 20, false) if err != nil { if err.Error() == "timeout" { logOnError(err, "Waiting...")