decrease hist size

This commit is contained in:
shoopea 2019-05-03 19:47:06 +08:00
parent dca8cfbea9
commit a0d816e60e

2
td.go
View File

@ -135,7 +135,7 @@ func getHistory(c *tdlib.Client) {
} }
for lastMsgID64 >= 0 { 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 != nil {
if err.Error() == "timeout" { if err.Error() == "timeout" {
logOnError(err, "Waiting...") logOnError(err, "Waiting...")