Telecord

Discord to Telegram Chat Exporter

Node.jsJavaScriptTelegram Bot APIAxiosCLInpm

Telecord is a CLI tool that seamlessly exports Discord chat history to Telegram. It supports media attachments, customizable message delays, interactive and CLI modes, and reverse message ordering. Built with Node.js and the Telegram Bot API for a smooth migration experience.

Export with Media Support

  • Full message history export
  • Images and videos included
  • All attachment types supported
  • Preserves message formatting

Flexible CLI Interface

  • Interactive step-by-step mode
  • Command-line automation
  • Customizable message delays
  • Verbose logging for debugging

Multi-Platform Installation

  • Arch Linux (AUR)
  • Debian/Ubuntu (.deb)
  • Nix/NixOS support
  • npm global installation

Smart Features

  • Reverse message order option
  • Rate limiting protection
  • Graceful error handling
  • Real-time progress updates

Deep Dive

How It Works

Telecord works in conjunction with discord-chat-exporter-cli. First, you export your Discord messages to a JSON file with media attachments. Then Telecord parses the JSON, uploads media files to Telegram, and sends messages one-by-one to your specified chat. You can control the delay between messages to avoid rate limiting and even reverse the order to send newest messages first.

Interactive Mode

The interactive mode provides a guided experience where you're prompted step-by-step for all required information: JSON file path, media folder, Telegram bot token, chat ID, message delay, and preferences for message order and logging. This makes the tool accessible even if you're not familiar with CLI tools.

Installation Options

Package Managers

Arch Linux (AUR)

yay -S telecord

Debian/Ubuntu

dpkg-buildpackage -us -uc

Nix/NixOS

nix-build && nix-env -i -f .
npm Installation

Clone and install globally:

git clone https://github.com/vinayydv3695/telecord
cd telecord
npm install
npm link

Usage Examples

Basic CLI Mode

telecord -f media.json -m media.json_Files -t BOT_TOKEN -c CHAT_ID

With Custom Delay & Reverse Order

telecord -f media.json -m media.json_Files -t BOT_TOKEN -c CHAT_ID --delay 0.5 --reverse

Interactive Mode

telecord --interactive

Technical Stack

Runtime

Node.js

HTTP Client

Axios

API

Telegram Bot API

Prerequisites

1. discord-chat-exporter-cli

Install from GitHub releases to export Discord chats

2. Discord Token

Your Discord authentication token

3. Telegram Bot Token

Create a bot via @BotFather on Telegram

4. Telegram Chat ID

Get your chat ID from @userinfobot