Welcome to Health care magic.
If you had some swelling and bleeding it may be a thrombosed internal pile or something else so first step would be to visit and get a complete examination that is internal and a Proctoscopy with a surgeon.
Once your diagnosis is confirmed proper advise can be given to you.
Please avoid constipation
as it may make condition worse so take lot of water and take fresh fruits and lot of fibrous food including green vegetables.
If there is a hole it may be sinus
or fistula which needs surgical care so do not delay and visit a surgeon as soon as possible.
You can take hot hip( Sitz)bath for 10 min twice daily.
Mild laxatives can be taken.
Good Luck to you.