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,