From ff880e303033c394efb11693f82403a4b677a772 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 17:26:24 +0800 Subject: [PATCH] upd --- main.go | 1 + td.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 01ee1dd..3c22a02 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,7 @@ func main() { ownUserID64 = int64(OwnUserID(client)) if *history { + log.Println("Getting history ..") getHistory(client) } diff --git a/td.go b/td.go index 57a0fcc..4653a55 100644 --- a/td.go +++ b/td.go @@ -108,7 +108,6 @@ func ListenCW(c *tdlib.Client) { } func getHistory(c *tdlib.Client) { - log.Println("Getting history .. !") var lastMsgID64 int64 = int64(math.MaxInt64) conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue)