From ddacb1fb27da1c0ea5b0c13da87cf187707ba7c3 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 10 Nov 2019 17:56:43 +0800 Subject: [PATCH] remove ListenAll --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3cf1eb3..7ba6eaf 100644 --- a/main.go +++ b/main.go @@ -111,7 +111,7 @@ func main() { go PillageKnight(client) go ListenDarkwing(client) go ListenCW(client) - go Listen(client) + // go ListenAll(client) go ListenGuild(client) // go ForwardOwnMsg(client) @@ -742,7 +742,7 @@ func ForwardOwnMsg(c *tdlib.Client) { } } */ -func Listen(c *tdlib.Client) { +func ListenAll(c *tdlib.Client) { eventFilter := func(msg *tdlib.TdMessage) bool { updateMsg := (*msg).(*tdlib.UpdateNewMessage) chatID := updateMsg.Message.ChatID