1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 01:06:17 +00:00

Merge branch 'master' into feature-kotlin

This commit is contained in:
Fabian Schlenz 2017-12-11 08:29:28 +01:00
commit 191b2fe05a
3 changed files with 24 additions and 8 deletions

View File

@ -1,6 +1,6 @@
FROM openjdk:8 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 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 && \ RUN apt-get update -y && apt-get install -y curl && \

View File

@ -18,8 +18,6 @@ You can find the whole app packed into one fat jar file under
only. only.
* Incremental backups - if you run the tool at a later time, it will only * Incremental backups - if you run the tool at a later time, it will only
download new messages / media. 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 ## Limitations
This tool relies on Telegram's API. They started rate limiting the calls 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 <phone>` to use this account and download all call it again with `--account <phone>` to use this account and download all
it's history. If you have just one account, you can omit this parameter. 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 ## Donations
I've put quite some time into this tool. If you want to donate a small 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 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 media files, named after the ID of the message they belong to. Last but not
least the folder `export` contains exported data. 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 ## Attribution
This tool uses libraries from other developers which are covered by other licenses, This tool uses libraries from other developers which are covered by other licenses,

View File

@ -164,11 +164,11 @@
}); });
</script> </script>
<span id="heatmap" style="width: 500px; height: 600px;"></span> <div id="heatmap" style="width: 500px; height: 600px;"></div>
{{#count.dialogs}} {{#count.dialogs}}
<span id="chart_chat_types" style="width: 600px; height: 500px;"></span> <div id="chart_chat_types" style="width: 600px; height: 500px;"></div>
{{/count.dialogs}} {{/count.dialogs}}
<span id="chart_message_types" style="width: 600px; height: 500px;"></span> <div id="chart_message_types" style="width: 600px; height: 500px;"></div>
<span id="chart_media_types" style="width: 600px; height: 500px;"></span> <div id="chart_media_types" style="width: 600px; height: 500px;"></div>
<span id="chart_authors" style="width: 600px; height: 500px;"></span> <div id="chart_authors" style="width: 600px; height: 500px;"></div>