Clarification

I am from non muslim community India.I am asking as FIR is not done against me but will be lodged soon as my friend is already arrested where both of us had done a mistake.I am a netizen. a few days ago I got irritated by laughs and comments on social media on kashmir files movie.I really got emotional.A guy recently posted (laughing emojis maza aagaya movie dekhe) on kashmir files. So I got irritated and scolded him and his family.In turn he did the same. Both of us scolded each others families using private parts also. At one moment I totally got irritated and gone out of my control and mind.I even scolded his religion's(islam) god using worst words(including private parts which cant be told as they are that worse).Seeing this a differrent random guy started threatening me saying he will lodge a complaint. The whole issue happened on social media. We didn't go physical. The guy who started the issue and who complained against are differrent. the whole chat is as follows: He: ?? Maza aaya movie dekhe me: tere maa aur bahin ke saath bhi ise hua tha na. he: bahut maza aaya panditon baagna dekhe. me: scolded his family using private parts. he: he also did the same. me: may your god lick my ....(i was ashamed to say completely). My point of confidence is 1. The whole issue is started by the other person. 2. He started mocking us and he was the reason for going out of control of my mind. My mistakes are 1.Shouldnt have gone to such an extent to scolding gods. 2.By the recent activities in social media I started having their community phobia due to their treatment with us. I want to win this case and get a clean chit as fir will spoil my future.I dont want to be jailed. I am ready to say sorry.Will there be any advantage if i got to doctor now and get extreme anger certificate.? My age is 25 years. I want the above doubts to be cleared and also average result of this case. Expecting a quick and clean reply from you. Can i win this case?