Getting Started & Installation
This guide walks you through the system requirements, initial setup, and methods to run and compile TelegramDL.
System Requirements
Section titled “System Requirements”TelegramDL is optimized for cross-platform desktop environments:
- Operating Systems: Windows 10/11, macOS 11+, Linux (Ubuntu, Debian, Fedora, Arch).
- Go: Version 1.22 or higher (to build from source).
- Node.js: Version 18 or higher with
npm(to build the web dashboard). - Wails v2 CLI: Required for desktop compilation and packaging.
- WebView: Requirements by operating system:
- macOS: It already includes its own native WebView..
- Windows: Requires installation Microsoft Edge WebView2 Runtime.
- Linux: Requires WebKitGTK, QT WebEngine o WPE WebKit.
Command to install Wails :
Section titled “Command to install Wails :”If you wish to compile the application
go install github.com/wailsapp/wails/v2/cmd/wails@latestObtaining Telegram Credentials
Section titled “Obtaining Telegram Credentials”To connect to the Telegram MTProto network, you need personal API ID and API HASH keys:
- Sign in to my.telegram.org with your phone number.
- Navigate to API development tools.
- Fill out the application registration form (any app name or short title is valid).
- Copy the generated values:
App api_idandApp api_hash.
Initial Configuration
Section titled “Initial Configuration”Graphical wizard on first startup
Section titled “Graphical wizard on first startup”When opening TelegramDL for the first time—whether via the native application or the browser using --server mode—the interface will display an interactive wizard that asks you to…:
API IDandAPI HASH.- International phone number format (e.g.
+12025550123). - Verification code (sent via the official Telegram app or SMS).
- Two-Factor Authentication (2FA) password, if enabled on your account.
Once finished, you can start using the program.
Data Directory & Storage
Section titled “Data Directory & Storage”TelegramDL stores all application state, sessions, and SQLite databases in your user directory:
- Windows:
%USERPROFILE%\.tgdown\tgdown.sqlite3 - Linux / macOS:
~/.tgdown/tgdown.sqlite3
Downloads default to your system’s Downloads/TelegramDL folder, which can be modified at any time in Settings.
Development & Building
Section titled “Development & Building”1. Install Dashboard Dependencies (Vue 3)
Section titled “1. Install Dashboard Dependencies (Vue 3)”npm --prefix dashboard install2. Run in Development Mode (Live Reload)
Section titled “2. Run in Development Mode (Live Reload)”wails devThis runs the Go backend and Vite dev server concurrently, opening the desktop window with hot module replacement.
3. Build Web Dashboard
Section titled “3. Build Web Dashboard”npm --prefix dashboard run build4. Build Desktop Binary
Section titled “4. Build Desktop Binary”wails buildThe compiled binary will be placed inside build/bin/ (TelegramDL.exe on Windows, or the desktop executable on macOS/Linux).