diff --git a/lib/router/group_request.go b/lib/router/group_request.go index 065c847..03dcc1d 100644 --- a/lib/router/group_request.go +++ b/lib/router/group_request.go @@ -21,7 +21,7 @@ func (r *Router) routeGroupRequest(update tgbotapi.Update, playerRaw *dbmapping. var piMsg = regexp.MustCompile("(П|п)(И|и)(З|з)(Д|д)") restrictionStatus := c.Chatter.ProtectChat(&update, playerRaw, chatRaw) - if restrictionStatus != "protection_passed" { + if restrictionStatus != "ok" { return restrictionStatus }