1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00
Go to file
2016-07-06 13:58:25 +02:00
build First commit: Just a collection of library sources from Github. Compiles, but doesn't work. 2016-06-29 10:59:33 +02:00
src/main/java/de/fabianonline/telegram_backup Added a new database to track runs of this tool in order to be able to monitor them later on (Nagios, Icinga and so on). 2016-07-06 13:58:25 +02:00
.gitignore Extended .gitignore. 2016-07-02 19:41:46 +02:00
build.gradle Gradle now creates JAVA files compatible to JAVA 7. 2016-07-05 07:54:35 +02:00
LICENSE.txt The code is now under GPLv3 license. 2016-07-05 14:03:46 +02:00
README.md Added README 2016-07-06 13:57:27 +02:00

Telegram_Backup

Copyright 2016 Fabian Schlenz
Licensed under GPLv3

Description

This is a small Java app that allows you to download all your history from Telegram's servers and keep a local copy of them.

Features

  • You can use multiple accounts with this tool.
  • Messages are saved in a SQLite database; media (documents, photos, videos, stickers, geolocations, audios) are downloaded and saved as files.
  • A GUI is planned for later; at the moment this is a command line tool 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. Apparently they don't like people who download lots of media files, so this app gets blocked after about 2000 downloaded media files. This is nothing bad; the app detects this and waits the necessary amount of time as dictated by Telegram. Since this delay can be quite large (I've seen 50 minutes), downloading lots and lots of media can take some time.

But since this tool is designed to be able to continue it's work at any time, you can just abort the download and continue it later - that way, you'll be moving step by step towards a complete archive of your telegram messages and media files.

Usage

You need to have at least Java 1.7 installed on your machine. Download the jar file, and run it on the console like this: java -jar telegram_backup.jar.

Append --help to get a list of all available commands.

Basically, you have to call it with --login first to login to your telegram account and then 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.

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 mail@fabianonline.de.

Alternatively use this link the next time you shop at amazon.com or this link for amazon.de. You won't pay any more, but I will get a few percent of your purchase's worth from amazon.

Attribution

This tool uses libraries from other developers which are covered by other licenses, which are:

  • Kotlogram by Yannick Badoual, licensed under MIT License.
  • SQLite JDBC by Taro L. Saito, licensed under Apache License version 2.0.