diff --git a/td.go b/td.go index 22afc17..d44143f 100644 --- a/td.go +++ b/td.go @@ -111,10 +111,12 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { Text: msg.Content.(*tdlib.MessageText).Text.Text, } } else { - m = nil + m = ChatWarsMessage{ + ID64: 0, + } } - if m != nil { + if m.ID64 != 0 { MQCWMsgQueue <- m if m.ID64 < lastMsgID64 {