This commit is contained in:
shoopea 2019-05-03 19:13:04 +08:00
parent baf7ef0722
commit 21e24e9048

2
td.go
View File

@ -177,7 +177,7 @@ func getHistory(c *tdlib.Client) {
}) })
if msg.ID < lastMsgID64 { if msg.ID < lastMsgID64 {
lastMsgID64 = msg.ID lastMsgID64 = msg.ID
lastMsgTime = time.Unix(msg.Date, 0) lastMsgTime = time.Unix(int64(msg.Date), 0)
} }
msgCount = msgCount + 1 msgCount = msgCount + 1
default: default: