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 {