From 82f28ff2988d7a1f8d849c6cfeda661d6ec9d57c Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 18:39:13 +0800 Subject: [PATCH] fix --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index d32f1e1..6d172da 100644 --- a/td.go +++ b/td.go @@ -136,7 +136,7 @@ func getHistory(c *tdlib.Client) { } for lastMsgID64 >= 0 { - msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 100, false) + msgs, err := c.GetChatHistory(user_chtwrsbot, lastMsgID64, 0, 50, false) if err != nil { logOnError(err, "Cannot get history") lastMsgID64 = -1 @@ -172,7 +172,7 @@ func getHistory(c *tdlib.Client) { } msgCount = msgCount + 1 default: - log.Printf("getHistory : no handler for %s\n", msg.Content) + log.Printf("getHistory : no handler for %s\n", msg.Content.GetMessageContentEnum()) } } }