This commit is contained in:
shoopea 2019-12-29 11:15:24 +08:00
parent 9983c7e480
commit 37ca1294de

2
td.go
View File

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