From what I've seen, you've asked for similar advice before and people have explained the situation with prospective / current medical students and mental illness, but here goes:
It is perfectly possible to be a medical student / doctor and have a mental illness. Plenty do. There is no set list of illnesses that are automatically ok / not ok.
The most important factor, is that you've sought appropriate help, and that your illness is felt by your health professionals to be under control and that you're up to the rigors of medicine, be that studying the intense course, or working as a doctor. That doesn't mean that you can't take medication - part of getting things under control might well include taking medication and again plenty of medical students and doctors take medication for mental health problems.
You are not asked to declare anything to admissions panels. The people that require this information are occupational health, and this bit comes later once you have any conditional offer. As part of any offer to study medicine, you *will* be required to complete an occupational health questionnaire. This will cover all aspects of physical and mental health, and clearance by occy health wil form part of the conditions of your offer. Part of the occy health form is giving the details of your GP / other significant health professionals so that they can write reports on any health conditions. You are required to be honest on this form, and lying on this form would be a massive probity issue that would bring you before fitness to practice panels.
Whilst the occy health system is not perfect, the aim is, as much as possible, to make sure that people are supported appropriately to undertake a demanding medical degree, not to punish them and stop them from doing it. Obviously nonetheless in certain circumstances it might be determined that someone has a severe mental or physical health problem that's going to require them to defer starting medical school for another year or more / not be able to start medical school at all if it is felt that there is not much likelihood of getting the problem under control and stable enough to enable someone to study medicine.
The best time to think about applying for medicine is when things have been stable and under control for a period, whether that's with or without medication. it is probably worth talking to your various health professionals and asking them what sort of reports they would write / recommendations they would give to occy health for you - as this is going to happen if you apply, and this will be your best indicator of what they are likely to say and how feasible it is for you to think about doing medicine. Best wishes.