From 80078948cb51981508b3e355603e5526e0a9a234 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 12 Oct 2019 13:30:36 +0800 Subject: [PATCH] fix --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index ab29be6..a3fb3ef 100644 --- a/td.go +++ b/td.go @@ -42,7 +42,7 @@ func ListenTG(c *tdlib.Client) { chatID := int64(updateMsg.Message.ChatID) userID := int64(updateMsg.Message.SenderUserID) forwardInfo := updateMsg.Message.ForwardInfo - for k, v := range cfg.Listen { + for _, v := range cfg.Listen { if (v.Chat == chatID || v.Chat == 0) && (v.User == userID || v.User == 0) && forwardInfo == nil {