From f847c372d1f4c16c65c7d3c160c1d2052206e4be Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sun, 10 Dec 2017 12:09:43 +0100 Subject: [PATCH 1/4] Fix: Stats are now properly displayed in Firefox. --- src/main/resources/templates/html/_stats.mustache | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/templates/html/_stats.mustache b/src/main/resources/templates/html/_stats.mustache index 94a43e7..d423249 100644 --- a/src/main/resources/templates/html/_stats.mustache +++ b/src/main/resources/templates/html/_stats.mustache @@ -164,11 +164,11 @@ }); - +
{{#count.dialogs}} - +
{{/count.dialogs}} - - - +
+
+
From 37a5716e50a152a55f478298818490f9c5d75a88 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sun, 10 Dec 2017 19:53:51 +0100 Subject: [PATCH 2/4] README.md: Explain EmptyMessages. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index fd622fc..a023ff2 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,15 @@ containing all your messages and other data. The folder `files` contains all media files, named after the ID of the message they belong to. Last but not least the folder `export` contains exported data. +### What are EmptyMessages? Why are there so many messages? +If you are a member of a normal group (non-supergroup), all messages sent to +that group are being copied to your personal messages at Telegram's servers. + +If you later leave this group, those messages are being deleted at Telegram, +but since all messages are continuously numbered, you can't simply delete +them because that would leave a hole in your message numbers. So these +messages are instead replaced by EmptyMessages - those things contain zero +information, they are just saying "here was a message but it was deleted". ## Attribution This tool uses libraries from other developers which are covered by other licenses, From 07bb29ea1c9937c1204e406aaa7389aeda338357 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sun, 10 Dec 2017 19:58:33 +0100 Subject: [PATCH 3/4] README.md: Further extensions. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a023ff2..38f61d2 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,6 @@ You can find the whole app packed into one fat jar file under only. * Incremental backups - if you run the tool at a later time, it will only download new messages / media. -* You will be able to use an HTML exporter to create static HTML files - containing your chats. This feature is still in the works. ## Limitations This tool relies on Telegram's API. They started rate limiting the calls @@ -43,6 +41,15 @@ Basically, you have to call it with `--login` first to login to your telegram ac call it again with `--account ` to use this account and download all it's history. If you have just one account, you can omit this parameter. +Use `--with-supergroups` and / or `--with-channels` to also download all +messages from the supergroups / channels you have joined that have been +active in the last time. + +After making a backup, call it again with `--export html` to create a few +more-or-less nice to look at HTML files containing all your chats. They will +be created in the subfolder `files` of your backup. You can just open the +file index.html in your browser to look at the files. + ## Donations I've put quite some time into this tool. If you want to donate a small amount, you can send it via Bitcoin to *1CofYzS88iEngxMu4NqQeohWDBUHv9CNDJ* or via PayPal to From 2321fa11eec72ec9d3d7d3e8fd2b774f6c1f4c84 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Mon, 11 Dec 2017 06:06:27 +0100 Subject: [PATCH 4/4] Version 1.1.0: Updated the dockerfile. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f656bfd..7a163e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:8 -ENV JAR_VERSION 1.0.6 +ENV JAR_VERSION 1.1.0 ENV JAR_DOWNLOAD_URL https://github.com/fabianonline/telegram_backup/releases/download/${JAR_VERSION}/telegram_backup.jar RUN apt-get update -y && apt-get install -y curl && \