If you set up WhatsApp to create a backup, you have the option to recover deleted messages on the app.
Recovering deleted text messages on Android is difficult, and the best strategy is to have Google Drive back up your phone.
If you want to recover a text message, tap on the thread or message so that it's selected, hit Recover on the bottom right, and then tap Recover Message in the pop-up that appears. You can also ...