A command-line tool that converts Telegram exports to Mattermost data imports.
- Install the Telegram Desktop app.
- Export chat history:
- Select a chat
- Open the overflow menu in the top-right
- Export chat history
- Choose the options you desire, but ensure "Format" is set to "Machine-readable JSON"
- Install the tool.
go install github.com/gabe565/telegram-to-mattermost@latest
- Run the tool with the data export directory as a param, for example:
telegram-to-mattermost ~/Downloads/Telegram\ Desktop/ChatExport_2024-08-01
- See docs for command-line flags.
- Fill in the prompts to set up user mappings.
- The tool should finish successfully, and a new file
data.zip
will be available to import into Mattermost. - Follow Mattermost's bulk loading data guide to import this file.