Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
21
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Telegram Download Chat is a Python CLI utility that downloads and analyzes Telegram chat history. It provides both command-line and GUI interfaces for downloading messages from chats, groups, channels, or archived exports and saving them in JSON/TXT formats.
core/ package): Contains TelegramChatDownloader plus helper modules (auth, config, download, entities, media, messages, context) built on Telethoncli.py): Command-line interface with argument parsing and async message processinggui_app.py): PySide6-based graphical interface with threading for async operationsmcp/ package): Model Context Protocol server exposing Telegram chat tools for AI assistantspaths.py): Handles config file management and application directoriesThe application follows a modular design:
Use
.venv virtual environment.
# Install in development mode with all dependencies pip install -e ".[dev,gui]" # Or install from requirements pip install -r requirements.txt
# Run tests pytest # Run tests with async support pytest -v # Run specific test pytest tests/test_telegram_download_chat.py::TestClass::test_method
# Format code black src/ tests/ # Sort imports isort src/ tests/ # Type checking mypy src/
# Build package python -m build # Install from source pip install . # Build PyInstaller executables ./build_macos.sh # macOS ./build_windows.ps1 # Windows
# CLI mode python -m telegram_download_chat username # GUI mode python -m telegram_download_chat gui # or telegram-download-chat gui # From source python main.py # Launches GUI by default
paths.py)config.example.ymliter_messages() with pagination--subchat: Extract message threads/replies--split: Split output by month/year--user: Filter by specific sender--max-date: Messages on or before this date--min-date: Messages on or after this date--media: Download media attachments (photos, videos, documents, etc.)_pyinstaller/ for bundlingtelegram_get_messages and telegram_connection_status toolspython -m telegram_download_chat.mcp