How to hide the WhatsApp message previews

Solution: Go to Settings > Notifications > Show Preview, change the settings.