diff --git a/text/matcher.go b/text/matcher.go index 0dd6f7a..fecfe04 100644 --- a/text/matcher.go +++ b/text/matcher.go @@ -30,7 +30,7 @@ func Matcher(update tgbotapi.Update, bot *tgbotapi.BotAPI) { //balonlyl var isBalonlyl bool = false for _, word := range config.BotConfig.Balonlyl.TriggerWords { - if strings.Contains(strings.ToLower(update.Message.Text), word) && (commonlogic.ContainsInt64(config.BotConfig.Balonlyl.EnabledChats, update.Message.Chat.ID) || update.Message.From.ID == update.Message.Chat.ID) { + if strings.Contains(strings.ToLower(update.Message.Text), word) && (commonlogic.ContainsInt64(config.BotConfig.Balonlyl.EnabledChats, update.Message.Chat.ID)) { isBalonlyl = true break }