WhatsApp was bought for $19 billion. You could probably pay $1 billion and get a couple of different systems that worked well enough to replace WhatsApp.
Having read the engineering posts about their core systems I think you're being wildly optimistic in the same way as people who think "writing a general CMS can't be that hard, I'll just write my own" are.
most likely their internal system can only think in telephone numbers or something like that