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()) } } }