Probably you may be having piles(hemorrhoids). Which got aggrevated by constipation.
Next Steps
have plenty of high fiber diet like salads and green vegetables and plenty of water in between meals.
Health Tips
proctoscopy is required for confirmation of diagnosis. consult a surgeon.