diff --git a/td.go b/td.go index fe10d5d..cfce282 100644 --- a/td.go +++ b/td.go @@ -62,15 +62,11 @@ func ListenCW(c *tdlib.Client) { m := ChatWarsMessage{ UserID64: ownUserID64, + ChatID64: updateMsg.Message.ChatID, MsgDate: updateMsg.Message.Date, MsgText: string(txt), MsgID64: updateMsg.Message.ID, } - if senderUserID == ownUserID32 { - m.Direction = Outgoing - } else { - m.Direction = Incoming - } b, err := json.Marshal(m)