1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-24 14:05:34 +00:00
Commit Graph

104 Commits

Author SHA1 Message Date
34cca18009 The check for the last message ID should ignore channels, because they have their own numbering system which could result in numbers larger than your own message IDs which leads to downloads of lots of empty messages which then block further backups. 2016-08-31 06:55:22 +02:00
5291b35f63 Added version checking code. Complete with unit tests. Oh yeah. :D 2016-08-29 07:01:32 +02:00
3e64b336a8 Only create a database backup if there isn't one already. This prevents overwriting a perfectly fine backup with a more or less broken one in case a database update fails. 2016-07-27 06:11:50 +02:00
eb9715cb09 * Explicitly close ResultSet in DatabaseUpdate process to prevent not being able to update the Database due to it being locked. Closes #6.
* Don't create backup of non-existing database if we're creating a fresh one.
* Changed the style of HTML exports slightly.
2016-07-26 21:24:21 +02:00
fad822d53d Removed the old StatsExporter since the stats are now included in HTMLExporter's output. 2016-07-26 18:15:25 +02:00
cbdb5dfcb9 Massively better exports. Stylesheets and Stats added. 2016-07-26 18:10:30 +02:00
68f8841d12 HTMLExporter: Moved from Google charts to Highcharts; implemented the heatmap. 2016-07-26 06:42:48 +02:00
24f8320a42 Fixed the login process when two-factor authorization is used. 2016-07-26 05:59:58 +02:00
458894a8bf Improvements in account handling; detection for a mismatch between selected account and used account authorization. 2016-07-26 05:54:11 +02:00
8a266dedfe If your auth data is invalid or missing, you will be prompted to re-login to telegram. 2016-07-26 05:49:20 +02:00
7b28f8b7d0 Small code fixes / improvements. 2016-07-25 18:44:37 +02:00
75566ef53a WIP: Changes to the exporter. Stats are included in HTML output; Heatmap added. 2016-07-25 18:21:52 +02:00
627cef0ae2 Added some more debugging to UserManager. 2016-07-25 16:24:28 +02:00
77bfcfb849 Added a .gitkeep to build/resources/main in order to have git automatically create that folder on checkout / clone. 2016-07-21 06:36:23 +02:00
05800a5e3e Removed build.properties again cause that files shouldn't be under source control. 2016-07-21 06:35:08 +02:00
669c154e21 Added content to build.properties to show that it's being auto-generated. 2016-07-21 06:03:49 +02:00
d543f7b3c9 Merge branch 'master' of https://github.com/fabianonline/telegram_backup 2016-07-21 06:01:49 +02:00
15d3aaccf3 Merge pull request #4 from tian2992/patch-1
Create build.properties
2016-07-21 06:00:20 +02:00
Sebastian Oliva
be05112d49 Create build.properties 2016-07-20 12:18:00 -06:00
c24ba416e0 Updated README to attribute Logback and SLF4J as well. 2016-07-20 06:39:18 +02:00
1481e5625e Completely reworked logging.
* Using slf4j and logback for logging.
* Disabled all logging output from kotlogram by default.
2016-07-20 06:37:24 +02:00
a43b81ee91 Rewritten FLOOD_WAIT detection code. 2016-07-15 22:22:58 +02:00
d339472ba8 Getting an error 500 while downloading files now skips the current file. If it happens two times in a row, we quit. 2016-07-15 22:22:18 +02:00
3546127690 Photos also have a dcId. Use it to prevent unnecessary FILE_MIGRATE_* stuff. 2016-07-15 07:04:58 +02:00
7181ec69d3 Using a special downloaderClient for fiel downloads. 2016-07-15 07:04:45 +02:00
f2b6bc6e16 Fix NPE at Database.java line 199. 2016-07-15 07:01:09 +02:00
051c0a31af Cleanup 2016-07-15 06:35:06 +02:00
f460d2307a Caching partially downloaded media data. 2016-07-14 19:47:10 +02:00
fc7d3fdcbc Updated Kotlogram to the current HEAD. This also added a small database change and the need to update database entries for messages with media that were downloaded with api layer 51. 2016-07-14 19:43:41 +02:00
b4c50a0163 Preparations for caching downloaded files. 2016-07-14 06:43:44 +02:00
ffddfe68d1 More Logging. 2016-07-14 06:21:58 +02:00
61b5ba7676 Always display exceptions. 2016-07-14 06:15:21 +02:00
0b95b42607 Moved Dabase changes into their own class. 2016-07-13 06:56:00 +02:00
ac67818d28 App now always exits. 2016-07-13 06:22:11 +02:00
c5c692d61d Useful logging when called with --debug. The old --debug is now --debug-telegram. 2016-07-13 06:20:51 +02:00
95a02e89c3 Always show creator info when running. 2016-07-13 06:07:37 +02:00
ee16af7d3c Version now automatically gets set by gradle. 2016-07-13 06:06:26 +02:00
1d28470563 Ignoring main.iml 2016-07-13 06:02:28 +02:00
fefebc9cd6 Cleaned up CommandLineOptions. 2016-07-11 18:17:42 +02:00
6499aed3c1 CommandLineOptions is now static to make usage easier. 2016-07-11 18:11:12 +02:00
71150a36d2 Don't die with NPEs if a MediaFileManager tries to download an Empty media thing. 2016-07-11 06:34:16 +02:00
468c5517dd Supergroups have their own message IDs. Load more than the 1 last dialog and take the biggest ID. 2016-07-11 06:31:06 +02:00
7e91ec092e Stop execution if an error happens during database upgrades. 2016-07-11 06:25:19 +02:00
05dea702c3 Randomly choose file download block sizes in the hope of getting rid of FLOOD_WARN errors. 2016-07-11 06:21:34 +02:00
8cae413e6a Merge branch 'master' of https://github.com/fabianonline/telegram_backup 2016-07-09 12:25:47 +02:00
99b25c7272 Reduced the file download chunk size from 10 to 1 MByte. 2016-07-09 12:25:27 +02:00
0bf5ed47fc Reduced the file download chunk size from 10 to 1 MByte. 2016-07-09 12:21:08 +02:00
41f8fc80c5 WIP: Added StatsExporter. 2016-07-09 12:19:42 +02:00
8b361d5547 More and nicer exports. Mustache is nice. 2016-07-08 14:21:11 +02:00
4e227e55c8 Added a method to create database backups before doing huge database update stuff. 2016-07-08 06:58:58 +02:00