From 21e24e90488348a9df48ce6f7e0f1e6f85993634 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 19:13:04 +0800 Subject: [PATCH] fix --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: