From 0d95954583c36061b480f586cbe9fdf9c1aa22e6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 18:02:46 +0800 Subject: [PATCH] fix --- td.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 1c45552..3f591a8 100644 --- a/td.go +++ b/td.go @@ -71,11 +71,12 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { var lastMsgID64 int64 = int64(math.MaxInt64) var msgCount int32 = 0 var lastMsgTime time.Time = time.Now() + var chat int64 if *chatID64 == 0 { - chat := user_chtwrsbot + chat = user_chtwrsbot } else { - chat = chatID64 + chat = *chatID64 } for lastMsgID64 >= 0 {