How to export Whatsapp? And how to export Telegram messages from an iPhone?

Regular HTML export from messengers is necessary for long-term archiving

For WhatsApp I would use the Tenorshare or iTransor program.

Tenorshare iCareFone


The Telegram Desktop (App Store version! not the  download version from the website!) has a built in export function.

native Telegram export function