diff --git a/td.go b/td.go index 900bf07..632752d 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(msg.Date, 0) + lastMsgTime = time.Unix(int64(msg.Date), 0) } msgCount = msgCount + 1 default: