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 && \ diff --git a/README.md b/README.md index fd622fc..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 @@ -89,6 +96,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, 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}} - - - +
+
+