From dca8cfbea937782c60554b1e5f2de0ce650f37c0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 19:36:50 +0800 Subject: [PATCH] upd --- td.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)