public static BotCommand WithRegexGroup( this BotCommand command, GroupCollection group, params string[] parameterNames) { foreach (var parameter in parameterNames) { command = command.Add(parameter, group[parameter].Value); } return(command); }