This commit is contained in:
shoopea 2019-05-11 17:17:36 +08:00
parent 8a0ab2271a
commit 121ecf0ffc

2
td.go
View File

@ -98,7 +98,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
for lastParsedID64 >= 0 { for lastParsedID64 >= 0 {
prevLastParsedID64 := lastParsedID64 prevLastParsedID64 := lastParsedID64
msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 33, false) msgs, err := c.GetChatHistory(chat, lastParsedID64, 0, 99, false)
if err != nil { if err != nil {
if err.Error() == "timeout" { if err.Error() == "timeout" {
logOnError(err, "Waiting....") logOnError(err, "Waiting....")