Regular HTML export from messengers is necessary for long-term archiving
For WhatsApp I would use the Tenorshare or iTransor program.
The Telegram Desktop (App Store version! not the download version from the website!) has a built in export function.