Follow the official docs here or TLDR:
- Open the chat to be exported
- Tap
More Options
>More
>Export Chat
- Choose
Without Media
You can find the official release blog for the chat export feature here.
TLDR, on the telegram desktop app:
- Goto
Settings
>Advanced
>Export
- Uncheck
Account Information
andContacts List
(Both not required) - Under
Chat export settings
select the appropriate options according to your preference - Uncheck all options under
Media export settings
andOther
(Not required) - Set the location, and select format as
Machine-readable JSON
Signal does not provide any "default" way to export chats to plain text. So you can use this tool by @carderne, and follow the steps given in it's README to export all the chats. You should have signal-desktop installed for the tool to work.
TLDR:
- Clone the tool from the link given above.
- Install the dependencies (namely, sqlcipher and openssl)
- Go to the directory of the cloned repository
- Run
./sigexport.py outputdir
to export the chats
Note: The Tool exports the chats in both HTML and Markdown. Make sure to use the Markdown files.