From 1d114e69925aef9fd998bb08f8348fda6f7df0fa Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 18:03:25 +0800 Subject: [PATCH] m --- td.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td.go b/td.go index 3f591a8..22afc17 100644 --- a/td.go +++ b/td.go @@ -72,6 +72,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { var msgCount int32 = 0 var lastMsgTime time.Time = time.Now() var chat int64 + var m ChatWarsMessage if *chatID64 == 0 { chat = user_chtwrsbot @@ -94,7 +95,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { switch msg.Content.GetMessageContentEnum() { case tdlib.MessageTextType: if msg.ForwardInfo == nil { - m := ChatWarsMessage{ + m = ChatWarsMessage{ SenderUserID64: int64(msg.SenderUserID), Date: msg.Date, ID64: msg.ID,