Welcome to Healthcare Magic Forum
The symptoms suggest that you had piles (hemorrhoids ) or an anal fissure
If there are is no pain, and if you feel no swelling and no discomfort around anus during and after passing stool and there is no constipation
you may not see a doctor, or just go for a simple examination, as no medication is needed.
But if there is any of the above symptoms, you must visit a doctor, a surgeon actually, who will examine are advice further.