Commit Graph

246 Commits

Author SHA1 Message Date
Fabian Schlenz 2e43ad90a6 Completely reworked the file download part and made it much, much more object oriented. 2016-07-07 17:10:00 +02:00
Fabian Schlenz ecbca30a10 WIP: Using mustache as template engine for HTML exporter. 2016-07-07 06:40:00 +02:00
Fabian Schlenz c62e6db3d3 TelegramUpdateHandler now only displays debug information if you set .debug to true. 2016-07-07 06:30:00 +02:00
Fabian Schlenz 5253145024 Only run the code in TelegramUpdateHandler if user and db are set. 2016-07-07 06:24:07 +02:00
Fabian Schlenz 2bee99518b Bumped the version to 1.0.3. 2016-07-07 06:18:58 +02:00
Fabian Schlenz 515efb2fde WIP: Added Daemon-mode to keep the app running and save new messages in real time. 2016-07-06 18:07:04 +02:00
Fabian Schlenz 1c92f02422 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
Fabian Schlenz 0d431beba6 Moved FLOOD_WAIT exception handling to Utils class. 2016-07-06 08:30:23 +02:00
Fabian Schlenz b3913ac123 Moved login code to it's own method; using System.console() (if possible) to let the user enter his password without it being echoed to the console. 2016-07-06 08:08:20 +02:00
Fabian Schlenz 2cb1d717b3 Bumped the version to 1.0.2. 2016-07-06 07:52:34 +02:00
Fabian Schlenz 799bad9755 FLOOD_WAIT-Protection now adds a few minutes of waiting time to give the API time to relax. Also increased the delay between file downloads to 1.5 seconds. 2016-07-06 07:52:20 +02:00
Fabian Schlenz 30618b4e3e Bumped the version to 1.0.1. 2016-07-05 17:40:18 +02:00
Fabian Schlenz 07aec6a94d Added GPLv3 headers to all the source files. 2016-07-05 15:32:54 +02:00
Fabian Schlenz 989e2e1d5c Added a short text to inform the user of how to exit the program if it doesn't do that by itself. 2016-07-05 15:32:20 +02:00
Fabian Schlenz 140dfdfabc Better error message for max_database_id>max_message_id. 2016-07-05 15:22:32 +02:00
Fabian Schlenz f5a478a454 HTMLExporter now also outputs the time of messages. 2016-07-05 15:22:08 +02:00
Fabian Schlenz 84984ddc20 Prepared to catch TimeoutExceptions and restart the download, if necessary. 2016-07-05 14:20:32 +02:00
Fabian Schlenz d2795cc7ab The code is now under GPLv3 license. 2016-07-05 14:03:46 +02:00
Fabian Schlenz bfdd70933d Added FLOOD_WAIT detection. 2016-07-05 13:31:45 +02:00
Fabian Schlenz bad165e97b Added support for downloading Geolocation maps. 2016-07-05 12:56:14 +02:00
Fabian Schlenz c8e33fa319 Added beginnings of an HTMLExporter. 2016-07-05 12:55:25 +02:00
Fabian Schlenz cf6ffc4c60 Fix for NPEs if the target directory does not exist. 2016-07-05 07:56:18 +02:00
Fabian Schlenz b3018ad10e Compatibility to JAVA 1.7 2016-07-05 07:55:53 +02:00
Fabian Schlenz 523ee51d22 Added a feature to display the version. 2016-07-04 15:45:45 +02:00
Fabian Schlenz e03f96363f Files get saved to the user dir by default, but you can change this value by using '--target'. 2016-07-04 15:37:23 +02:00
Fabian Schlenz 07ba594a15 Added automatic checks for missing messages in the database complete with download of these mesages. 2016-07-04 13:33:17 +02:00
Fabian Schlenz 29b963ec25 We only need the most recent dialog in order to get the top message id. 2016-07-04 11:04:35 +02:00
Fabian Schlenz 3b01f47f38 First database schema update. 2016-07-04 10:19:55 +02:00
Fabian Schlenz 83664b8fc0 Better support for empty media types. 2016-07-04 10:19:36 +02:00
Fabian Schlenz 8c0bb8aa83 Removed main.iml 2016-07-04 09:36:03 +02:00
Fabian Schlenz 293e77636e Delete files with too less bytes. 2016-07-04 09:35:40 +02:00
Fabian Schlenz 45e3e22ef3 Users and chats are saved to the database as well; DB schema changed requiring you to delete your database.sqlite at this point; old 'good' messages will not be overwritten by newer 'empty' messages. 2016-07-04 09:35:12 +02:00
Fabian Schlenz 7eed1f6bb1 Configurable delay between Message downloads. 2016-07-04 09:33:42 +02:00
Fabian Schlenz 95e74c58eb Better command line output during media download. 2016-07-04 09:32:53 +02:00
Fabian Schlenz 28965277e7 Added support for audio media. 2016-07-04 09:32:30 +02:00
Fabian Schlenz a2d3dadf7b File size-aware file downloading. Fixes #1. 2016-07-02 19:43:01 +02:00
Fabian Schlenz d75d409f87 If there is just one account, use it if possible. 2016-07-02 19:42:19 +02:00
Fabian Schlenz ba7e76087a Beginnings of a Swing GUI. 2016-07-02 14:12:57 +02:00
Fabian Schlenz c0bc3cdd2d You could call this version a first beta version. 2016-07-02 10:55:20 +02:00
Fabian Schlenz 265f3e854a This looks more or less usable... 2016-07-01 11:25:44 +02:00
Fabian Schlenz d60a56711a Download-stuff. Files. 2016-07-01 07:40:08 +02:00
Fabian Schlenz 29d5fc37d0 Commandline-Stuff, Database-stuff. 2016-06-30 10:54:40 +02:00
Fabian Schlenz 1c3d10befb Kotlogram works, login is working. 2016-06-30 07:47:37 +02:00
Fabian Schlenz a7caf248a3 removes basically all code. Fresh start. 2016-06-29 11:01:26 +02:00
Fabian Schlenz 3f5fd7787c Removed libraries. 2016-06-29 11:00:29 +02:00
Fabian Schlenz 53d2b1674f First commit: Just a collection of library sources from Github. Compiles, but doesn't work. 2016-06-29 10:59:33 +02:00