1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 08:46:15 +00:00
Commit Graph

317 Commits

Author SHA1 Message Date
cf806da77d Added spinners to visualize the ongoing download of bigger media files. 2018-04-20 06:52:30 +02:00
c2b1c0625e Playing around with exporters. Added a stupidly simple CSV exporter. 2018-04-20 06:43:48 +02:00
3c68e6d814 Merge branch 'feature-json2' 2018-04-20 06:11:11 +02:00
7e2d49ef09 Added a setting max_file_size to ignore files bigger than that size in MB. 2018-04-20 06:08:17 +02:00
11a6318a26 JSON objects now also contain a property api_layer containing their (surprise!) api_layer. 2018-04-19 17:48:11 +02:00
bb2a291d4f MediaFileManagers now use JSON instead of the TLMessage objects. 2018-04-17 06:36:39 +02:00
b1e9346203 Anonymize "target dir after options". 2018-04-16 05:59:28 +02:00
6b5b9a669b WIP: Reworking mediafilemanagers to work with JSON. 2018-04-16 05:57:05 +02:00
6b9cc9533a Better status reports from the DatabaseUpdate. 2018-04-14 15:01:54 +02:00
4c6c049502 Removed duplicate headers printed while downloading media. 2018-04-13 06:18:20 +02:00
28b402d3ab deploy.sh and deploy_bet.sh will now print short git diff stats into the telegram group's message. 2018-04-13 06:17:33 +02:00
6d4701189b Added json columns to users and chats tables; newly incoming objects are now saved together with their JSON data. 2018-04-13 06:10:27 +02:00
c963a8f334 deploy.sh: Go back to master after merging into stable. 2018-04-12 06:55:06 +02:00
2402356013 Added a DatabaseUpdate to convert the data to json. 2018-04-12 06:54:14 +02:00
df1c90578b Disabled version check if version number contains a dash. 2018-04-12 06:47:24 +02:00
96d5b5c77b DownloadManager now looks at all dialogs, not just the last 100. 2018-04-12 06:46:42 +02:00
c5f901f4a2 Small codefix to use parameter instead of fixed value. 2018-04-12 05:57:11 +02:00
e8c28b4e72 --limit-messages now also affects channels and supergroups. 2018-04-12 05:56:30 +02:00
f434482cdf Database connection will now always be closed on VM shutdown. 2018-04-12 05:55:45 +02:00
4d45c7f1cc Copy config.sample.ini to the right folder. 2018-04-11 06:26:05 +02:00
955ae42952 Use exit code 1 if quitting because of an exception. 2018-04-11 06:24:59 +02:00
01590b05ee Reformatted the exporter selection part of CommandLineController. 2018-04-11 06:24:24 +02:00
b5ff4dd1a6 Removed debug output from CommandLineOptions. 2018-04-11 06:16:42 +02:00
b199dc335f Queries in Database now go through a custom function executeQuery which throws better (read: informative) Exceptions. 2018-04-11 06:14:55 +02:00
1ff540977e Merge branch 'feature-rewrite' 2018-04-11 06:11:07 +02:00
ff9163c1bb Settings: Is CLI is set, use it instead of INI. 2018-04-11 05:51:00 +02:00
38fce0ee5c Some more refactoring of Settings. 2018-04-11 05:50:26 +02:00
f24e66271f Added command '--settings', which will print the currently active settings. Settings can now be marked as secret - if that is true, the settings value will only be printed if it is not the default value. 2018-04-10 06:38:28 +02:00
a9444e7813 Rewrote CommandLineOptions: The code is now better readable and accepts parameters like --target=/data and accepts some short parameters like -t for --target. 2018-04-10 06:36:18 +02:00
069799cbaf Resorted the code in DownloadManager - no more need for downloadMessages calling _downloadMessages or downloadMedia calling _downloadMedia. 2018-04-10 06:33:15 +02:00
9affb47130 Reworked the obeyFloodLimit-Stuff to now use lambdas. 2018-04-10 06:26:46 +02:00
be1cf8ba91 Fixed a bug in Utils.anonymize 2018-04-10 06:13:29 +02:00
5c466131d3 Rewritten Settings. 2018-04-10 06:12:02 +02:00
e5da546386 CommandLineOptions will now insert booleans into values with an value of "true" as well. 2018-04-10 06:11:01 +02:00
ec4097e777 The code is now compiling, but still largely untested. So it's still kinda WIP. 2018-04-09 06:07:53 +02:00
77efde1136 WIP: Still having fun with git stash. -.- 2018-04-06 06:21:39 +02:00
253b334fc3 More rewriting. Also lots of fun with git stash and wrong branches... 2018-04-06 06:19:49 +02:00
ebff71b208 WIP: Even moar rewriting. 2018-03-20 06:44:36 +01:00
eea08a5559 WIP: Lots and lots of rewriting. 2018-03-16 06:59:18 +01:00
78031b0ff2 Don't download media files in daemon mode if download_media is false. 2018-03-15 20:49:37 +01:00
f4d563226c Added limit and offset parameters to Database#getMessagesWithMedia in order to prevent high memory usage in downloadMedia. 2018-03-15 20:49:15 +01:00
968ee831f0 Added max_file_age to download only newer files. 2018-03-15 06:48:37 +01:00
2d409352bc WIP: Some more rewriting. 2018-03-14 06:09:24 +01:00
97cf26b46d WIP: Started rewriting the code to make it more null-safe. 2018-03-14 06:08:07 +01:00
6276651b84 Fixed anonymization of database backup debug messages. Fixes #98. 2018-03-13 06:46:59 +01:00
f8984b25b1 Renamed IniSettings#get to IniSettings#getString. 2018-03-13 06:44:33 +01:00
2295ced528 Fixed a bug in IniSettings that prevented new accounts from being created. 2018-03-13 06:42:39 +01:00
aec609e6c4 Merge branch 'feature-settings' 2018-03-13 06:32:06 +01:00
dd99612bed Added command line switch --list-channels to list channels and supergroups with their ID to add them to black- and whitelists in config.ini 2018-03-13 06:31:38 +01:00
25a01fae4b You can now restrict the downloading of channels and supergroups by defining black- and whitelists in config.ini 2018-03-13 06:30:39 +01:00