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(