diff --git a/lib/chatter/restricters.go b/lib/chatter/restricters.go index b8f760b..5dd56d6 100644 --- a/lib/chatter/restricters.go +++ b/lib/chatter/restricters.go @@ -44,7 +44,7 @@ func (ct *Chatter) userPrivilegesCheck(update *tgbotapi.Update, user *tgbotapi.U c.Log.Debug("Checking user rights in headquarters chat...") } - if update.Message.Chat.ID == gamesChatID && strings.Contains(user.UserName, "bot") { + if update.Message.Chat.ID == gamesChatID && strings.Contains(strings.ToLower(user.UserName), "bot") { c.Log.Debug("Game bot with username @" + update.Message.From.UserName + " passed filtration") return true }