PT

popstas/telegram-download-chat

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

238 stars 34 forks Качество 86 Тренд 16MIT

popstas/telegram-download-chat — это кандидат на MCP-сервер, импортированный из https://github.com/popstas/telegram-download-chat.

Обзор

popstas/telegram-download-chat — это кандидат на MCP-сервер, импортированный из https://github.com/popstas/telegram-download-chat.

Обзор (машинный перевод)

Мощная командная строка, GUI и веб-интерфейс для скачивания и анализа истории чата Telegram в различных форматах.

Нужно отправлять или управлять сообщениями? Этот инструмент предназначен только для скачивания. Отправлять сообщения, создание групп/тем, управление участниками и папками, см. popstas/telegram-assistant.

Нужен прямой мониторинг вместо одноразового экспорта? Чтобы смотреть чаты, каналы , папки и пересылка соответствующих сообщений в реальном времени см. popstas/telegram-resender.

Особенности

  • Скачать полную историю чата из любого чата, группы, супергруппы, канала или экспортного архива Telegram
  • Скачать папку чатов
  • Извлечение подразговоров из потоков сообщений
  • Сохранение сообщений в формате JSON с полными метаданными сообщений
  • Генерировать читаемые для человека и LLM экспорты TXT с удобными для пользователя отображения
  • Скачивание вложений для медиа (фотографии, видео, документы, аудио и др.)
  • Транскрибировать голосовые сообщения с помощью Telegram Premium преобразования речи в текст (--stt), кэшированного для того, чтобы ничего не транскрибировалось дважды
  • Использовать пресеты для распространённых наборов опций через --preset
  • Кроссплатформенная поддержка (Windows, macOS, Linux)
  • CLI-first, опциональный графический интерфейс и веб-интерфейс

Фильтрация

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Telegram Chat Downloader

A powerful command-line, GUI and web interface utility to download and analyze Telegram chat history in multiple formats.

Need to send or manage messages? This tool is download-only. To send messages, create groups/topics, manage members and folders, see popstas/telegram-assistant.

Need live monitoring instead of a one-off export? To watch chats, channels and folders and forward matching messages in real time, see popstas/telegram-resender.

Features

  • Download complete chat history from any Telegram chat, group, supergroup, channel or Telegram export archive
  • Download chats folder
  • Extract sub-conversations from message threads
  • Save messages in JSON format with full message metadata
  • Generate human and LLM readable TXT exports with user-friendly display names
  • Download media attachments (photos, videos, documents, audio, etc.)
  • Transcribe voice messages with Telegram Premium speech-to-text (--stt), cached so nothing is transcribed twice
  • Use presets for common option sets via --preset
  • Cross-platform support (Windows, macOS, Linux)
  • CLI-first, optional graphical user interface and web interface

Filtering

  • Filter messages by date range
  • Filter messages by specific users
  • Filter saved messages by keywords
  • Filter messages by sub-conversations from message threads
  • Download only the unread messages of a chat (--unread)

Usage

Login

Log in once before the first download. In a terminal, a download without a session offers to log you in right there; everywhere else — the GUI, a cron job, the console-less Windows build — it never prompts and tells you to run login instead, so an unattended run fails with a message rather than waiting forever for an answer nobody can type.

# Log in with a code from Telegram
telegram-download-chat login

# Log in by scanning a QR code with an app you are already logged into
telegram-download-chat login --qr

The login code is delivered by Telegram, and for third-party clients it usually arrives in the Telegram app, in the chat named “Telegram” rather than by SMS. If no code arrives at all, use login --qr: the code is confirmed from a device where you are already logged in, so it does not depend on SMS. Add --debug to see how Telegram chose to deliver the code.

Since September 2026 Telegram sometimes reports the code as sent to the app (--debug shows SentCodeTypeApp with next_type=None) and then never delivers it, on any device (#91). The app cannot change how Telegram delivers codes, so QR login is the way in for such accounts.

In the GUI, the same two options live on the Settings tab: fill in the phone and code, or press “Log in with QR code”. For accounts with two-step verification, fill the Password field before scanning.

Открыть полный README на GitHub

Установка

uvx --from telegram-download-chat[mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "telegram": { "command": "python", "args": ["-m", "telegram_download_chat.mcp"] } } }