This commit is contained in:
shoopea 2019-05-03 18:39:13 +08:00
parent 9287915b39
commit 82f28ff298

4
td.go
View File

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