diff --git a/pkg/connector/commands.go b/pkg/connector/commands.go index 39e7e7ae..6f014dbc 100644 --- a/pkg/connector/commands.go +++ b/pkg/connector/commands.go @@ -117,7 +117,7 @@ var cmdJoin = &commands.FullHandler{ } var usernameLinkRe = regexp.MustCompile(`^(?:(?:https?://)?t(?:elegram)?\.(?:me|dog)/|tg:/{0,2}resolve\?domain=)([a-zA-Z]\w{3,30}[a-zA-Z\d])(?:\?.+)?$`) -var inviteLinkRe = regexp.MustCompile(`^(?:(?:https?://)?t(?:elegram)?\.(?:me|dog)/(?:joinchat/|\+)|tg:/{0,2}join\?invite=)([a-zA-Z0-9_-]{22})(?:\?.+)?$`) +var inviteLinkRe = regexp.MustCompile(`^(?:(?:https?://)?t(?:elegram)?\.(?:me|dog)/(?:joinchat/|\+)|tg:/{0,2}join\?invite=)([a-zA-Z0-9_-]{8,64})(?:\?.+)?$`) func fnJoin(ce *commands.Event) { if len(ce.Args) == 0 || len(ce.Args) > 2 {