As exmike said a bankruptcy will affect your ability to get private funding, but not the federal funding. However, I'm not sure what the requirements are for non-citizens for federal funding so definitely sit down with financial aid counselors. While a bankruptcy will affect your ability it may not completely preclude you from private loans, but you will most likely have either a higher interest rate or need a qualified co-signer. If possible you are probably better off waiting until the bankruptcy is off your credit record before you apply to med school. Bankruptcy's stay on your credit for I believe 7 years (or 10 if it was a business bankruptcy). If it's already been a few years you may not have to delay things that long...also some private loans only look as far back as 3 years for creditworthiness so you may be ok now but it'll take some research to find those options.
Good luck!