Whether you deleted your telegram messages mistakenly or intentionally, but now want to recover them, then follow the steps given below:
– Login to your telegram account and click on the “three horizontal lines” and then click on the setting button.
– After then, tap on the “advance” button
– Then, on the next page, you will see the “Export Telegram Data” option, click on it
– Then, it will ask for which type of chats you want to export. Select according to you, and finally click on the export button.
– Then one more thing, you have to do before downloading the path is select HTML Format.
Source