1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
# π€ Telecord
**Export Discord chats (JSON + media) to Telegram using a simple CLI tool.**
> β οΈ This tool depends on [`discord-chat-exporter-cli`](https://github.com/Tyrrrz/DiscordChatExporter) for exporting your Discord messages first. Make sure to install and use that before proceeding.
---
## π¦ What You Need First
### 1. Install [`discord-chat-exporter-cli`](https://github.com/Tyrrrz/DiscordChatExporter)
download a standalone binary from their [Releases](https://github.com/Tyrrrz/DiscordChatExporter/releases).
---
### 2. Export your Discord chat
```bash
discord-chat-exporter-cli export \
-t "YOUR_DISCORD_TOKEN" \
-c DISCORD_CHANNEL_ID \
--media \
-f Json \
-o media.json
```
> This will create:
>
> - `media.json` β your exported messages
> - `media.json_Files/` β folder containing any media (images, attachments, etc.)
---
## π Installation
**Coming soon to:**
- [ ] AUR (Arch User Repository)
- [ ] Nix
- [ ] Other Linux distros
**Manual installation (for now):**
```bash
git clone https://github.com/Vinayydv3695/telecord
cd telecord
npm install
npm link
```
---
## π Usage
### Basic CLI Mode
```bash
telecord -f media.json -m media.json_Files -t <TELEGRAM_BOT_TOKEN> -c <CHAT_ID>
```
### Options
| Option | Alias | Description |
| ------------------- | ----- | ----------------------------------------------- |
| `--file <path>` | `-f` | Path to Discord JSON file |
| `--media <path>` | `-m` | Path to media folder (e.g., `media.json_Files`) |
| `--token <string>` | `-t` | Your Telegram bot token |
| `--chat <id>` | `-c` | Discord Channel ID (e.g., `-1001234567890`) |
| `--delay <seconds>` | `-d` | Delay between messages (default: 1) |
| `--reverse` | `-r` | Send messages from newest to oldest |
| `--verbose` | `-v` | Enable detailed logs |
| `--interactive` | | Launch step-by-step mode |
---
## π§ Interactive Mode
No need to remember flags. Just run:
```bash
telecord --interactive
```
Youβll be prompted step-by-step:
```
β Path to Discord JSON file
β Folder containing media files
β Telegram Bot token
β Telegram chat ID
β Delay between messages
β Send newest messages first?
β Enable verbose logging?
```
---
## π§ͺ Example
```bash
telecord -f media.json -m media.json_Files -t 123456:ABCDEF123 -c -1009876543210 --delay 0.5 --reverse
```
---
## βοΈ How It Works
1. You export your messages from Discord using `discord-chat-exporter-cli`
2. Telecord parses the `.json` file
3. Media files are uploaded first
4. Messages are then sent one-by-one to your Telegram chat
5. You can control the delay, order, and see progress in real-time
It uses:
- Telegram's Bot API (via [Axios](https://github.com/axios/axios))
- Graceful error handling
- Verbose logging for debugging
---
## πΈ Screenshots
<!-- Paste screenshots and videos here -->
---
## π§Ύ License
MIT License
```
Copyright (c) 2025 Vinay
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the βSoftwareβ), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```
---
## π€ Author
Made with β€οΈ by **Vinay**
[GitHub](https://github.com/Vinayydv3695)
|