From 3667ff6ca96109f06bcb740d55b99c431bf883d0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 16:04:49 +0800 Subject: [PATCH] upd --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 8c1c9ff..ec136c8 100644 --- a/main.go +++ b/main.go @@ -16,8 +16,8 @@ import ( type MsgDirection string const ( - MsgIncoming string = `incoming` - MsgOutgoing string = `outgoing` + Incoming string = `incoming` + Outgoing string = `outgoing` ) type ChatWarsMessage struct { @@ -180,9 +180,9 @@ func ListenCW(c *tdlib.Client) { MsgID64: updateMsg.Message.ID, } if senderUserID == ownUserID32 { - m.Direction = MsgOutgoing + m.Direction = Outgoing } else { - m.Direction = MsgIncoming + m.Direction = Incoming } b, err := json.Marshal(m)