Getting a regulated buy-to-let mortgage with bad credit is difficult, but possible. Lenders consider your overall finances, including the type and amount of any bad credit.
A larger deposit can help improve your application. Talk to a broker or lenders to see if you qualify.