diff --git a/td.go b/td.go index 3e4a70c..30f6b02 100644 --- a/td.go +++ b/td.go @@ -94,7 +94,7 @@ func ListenCW(c *tdlib.Client) { m := ChatWarsMessage{ TGUserID64: ownUserID64, - TgSenderUserID64: int64(updateMsg.Message.SenderUserID), + TGSenderUserID64: int64(updateMsg.Message.SenderUserID), ID64: updateMsg.Message.ID, ChatID64: updateMsg.Message.ChatID, Text: txt, @@ -191,7 +191,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { } } - if m.ID64 != 0 && (*senderUserID64 == 0 || m.SenderUserID64 == *senderUserID64) { + if m.ID64 != 0 && (*senderUserID64 == 0 || m.TGSenderUserID64 == *senderUserID64) { MQCWMsgQueue <- m msgCount = msgCount + 1 }