Both are good ways to improve. You will often be able to see where you went wrong if you spend more time looking at certain moves after the game, and higher rated players will point out things that you may have overlooked entirely.
Should i analyse my own games

Just because they're a higher rated player doesn't mean they know everything. You should definitely analyze your own games. If you can find the right moves and where you made mistakes on your own, you will learn 10x faster than if someone just gives you the answers. That being said, having a higher rated player analyze is also great because they'll point out what you are unable to see.

No matter the strength it is always good for you to try and identify where you felt you went wrong. This is the most active way for your own chess improvement. Someone can show you the golden moves but that is passive learning. After making your analysis and hopefully spotting your errors and suggesting alternates yourself, have a computer or stronger player point the things you missed.
Remember, no matter the level, reviewing you games by yourself is the best way to learn.

You should analyse your games and then let a better player tell you what he thinks about it.
He will tell you plans you didn't see.
+1
In an ideal world, where you have a higher rated player handy and willing and you don't bore easily when analysing your own games you should do both. First you analyse, then go through it with your higher rated friend, then whilst your friend is still there, double check with an engine.
Personally I bore far too easily so I never analyse my own games. Ever. I also have no friends so I don't get my games analysed by better players. Ever. Even flicking through quickly with an engine bores me enough to dissuade me from doing that for 90% of my games... So this is very much a case of do as I say (or as jen says for that matter), not as I do.
That's how you'll improve fastest. It's hardly all mandatory though.

Just because they're a higher rated player doesn't mean they know everything. You should definitely analyze your own games. If you can find the right moves and where you made mistakes on your own, you will learn 10x faster than if someone just gives you the answers. That being said, having a higher rated player analyze is also great because they'll point out what you are unable to see.
Whilst that's true, I think it's more important that they point out when you react incorrectly to what you do see. Never talking to other people about your game is likely to lead to you making the same mistakes game after game. Mistakes that you would never know were mistakes without a little outside perspective.
Almost every chess article on getting better at chess says that I should analyze my games. but a few days back, a higher rated player said that I should not analyze my own games but should let higher rated players do it. is it true? I am rated 1140 in rapid chess.