I used Telegram lite to export all chats, in the end you will get an index.html file and a bunch of folders. So you will be able to browse all chats in web browser.
https://apple.stackexchange.com/questions/409688/export-chat-history-on-telegram-in-mac
Yup, all media files will also be exported.