How Can I Store My whatsapp chat History in online database

Hello Everyone,
I want to capture my all whatsapp chat history. And store this history to online database like firebase or spreadsheet etc…
When I send a message and receive any message in whatsapp these history is directly store to online database.
Can anyone develop this type app?