You can save pictures from your text messages on an iPhone easily, transferring individual photos or batches of images to your Photos app.
If you set up WhatsApp to create a backup, you have the option to recover deleted messages on the app.