From 15859aeb1880f4ff8fc7c069c5415de665eb2173 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 29 Apr 2019 13:59:56 +0800 Subject: [PATCH] fix --- main.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main.go b/main.go index 0707713..bff2673 100644 --- a/main.go +++ b/main.go @@ -98,11 +98,9 @@ func main() { } func ListenCW(c *tdlib.Client) { - var msgDisplay, msgDelete bool eventFilter := func(msg *tdlib.TdMessage) bool { updateMsg := (*msg).(*tdlib.UpdateNewMessage) chatID := updateMsg.Message.ChatID - senderUserID := updateMsg.Message.SenderUserID if (chatID == user_chtwrsbot) { return true } @@ -150,17 +148,6 @@ func ListenCW(c *tdlib.Client) { m.Direction = Incoming } - username := "null" - if senderUserID != 0 { - user, err := c.GetUser(senderUserID) - if err != nil { - fmt.Println("Listen:", err.Error()) - continue - } else { - - } - } - b, err := json.Marshal(m) _ = ch.Publish(