diff --git a/td.go b/td.go index 8b26342..900bf07 100644 --- a/td.go +++ b/td.go @@ -177,7 +177,7 @@ func getHistory(c *tdlib.Client) { }) if msg.ID < lastMsgID64 { lastMsgID64 = msg.ID - lastMsgTime = time.Unix(m.Date, 0) + lastMsgTime = time.Unix(msg.Date, 0) } msgCount = msgCount + 1 default: