A Tool to download a entire Chat from Telegram to have a handy backup.
Перейти к файлу
MrBesen d32af73933 download all chats at once. 2018-06-07 21:09:49 +02:00
.gitignore download all chats at once. 2018-06-07 21:09:49 +02:00
LICENSE download all chats at once. 2018-06-07 21:09:49 +02:00
README.md download all chats at once. 2018-06-07 21:09:49 +02:00
config.ini added config, nice format, numbered chats 2018-06-04 10:57:21 +02:00
telegramApi.py download all chats at once. 2018-06-07 21:09:49 +02:00

README.md

TelegramChatDownloader

A CLI program to download a chat from telegram.

How to install (linux only)

requirements:

install requirements:

sudo apt install python3-pip git
pip3 install telethon

get the downloader: git clone https://github.com/mrbesen/TelegramChatDownloader.git

open the file config.ini and enter your API ID, hash and username.

Then run:

cd TelegramChatDownloader/
./telegramApi.py
Output Format

The chat structure is stored as "chat.xml" in the folder "out/" All Media-files are Stored in the folder out/media/

Stickers get downloaded too, but they wont get a file-postfix. They are stored in the WEBP format.

A sample chat.xml could look like this:

<chat>
  <message>
    <date>1470214908</date>
    <msg>Hi!</msg>
    <me>1</me>
  </message>
  <message>
    <date>1470214882</date>
    <msg>Heyo</msg>
    <me>0</me>
  </message>
  <message>
    <date>1470214756</date>
    <msg>Look</msg>
    <me>1</me>
    <media>0</media>
  </message>
  <message>
    <date>1470070908</date>
    <msg>Thats sick</msg>
    <me>0</me>
  </message>
</chat>