Commit Graph

35 Commits

Author SHA1 Message Date
Daniil Gentili
0c68e58103 Apply fixes from StyleCI 2016-12-30 15:36:44 +00:00
Daniil Gentili
d2d54398c4 Fixed update handling, now usernames or bot api ids can be passed as parameters instead of Peer, inputPeer, Channel, User (and other) objects, fixed bugs and typos. 2016-12-30 16:32:25 +01:00
Daniil Gentili
0a8c04998e Apply fixes from StyleCI 2016-12-26 19:24:24 +00:00
danogentili
84abb27f18 Killed fread with fire, improved peer handling, written basic update handling features, written static class for serializing and deserializing MadelineProto easily, fixed lots of bugs, more stuff kek 2016-12-26 20:23:46 +03:00
Daniil Gentili
34865686da Working on updates 2016-12-24 17:20:45 +01:00
Daniil Gentili
f0f8ae56bf Apply fixes from StyleCI 2016-12-23 20:07:19 +00:00
Daniil Gentili
884232aec3 random_ids are now computed automagically, added methods to ease working with peers and updated docs 2016-12-23 21:06:38 +01:00
Daniil Gentili
f15631ab86 Apply fixes from StyleCI 2016-12-12 15:37:19 +00:00
Daniil Gentili
1611c0f8ec Fixed bugs 2016-11-30 21:46:46 +00:00
danogentili
071f63244d Updated tests 2016-11-29 16:52:41 +03:00
Daniil Gentili
885520c96a Remove part of tests 2016-11-29 01:17:36 +00:00
Daniil Gentili
8bba87c353 Rewrote TL class using webogram, fixed bug in recognition of system version, improved response handling, improved tests, improved documentation 2016-11-29 00:47:59 +00:00
Daniil Gentili
87a22ed0bc Apply fixes from StyleCI 2016-11-25 20:53:18 +00:00
Daniil Gentili
c6f1642264 Fixed bugs, updated docs, fixed serialization and deserialization of class, improved TL class 2016-11-25 20:52:56 +00:00
Daniil Gentili
3bba37ef1d Applied fixes from StyleCI 2016-11-24 23:15:53 +00:00
Daniil Gentili
7be648fb20 Added documentation, simplified code, organized exceptions, added some more examples in testing.php, decided to unset flags in deserialized responses, moved message id arrays to Connection classes, added wrappers for logging in to telegram as a bot or as a user and for logging out, fixed deserializing of gzip packed objects, added more logging, fixed bugs, added methods to get and parse configuration, saved some fairies, fixed exporting/importing of authorization, added some wakeup methods to prevent problems during serialization, added support for ipv6 and automagical detection too. I think we can safely say this is now a beta. 2016-11-24 23:15:22 +00:00
Daniil Gentili
c168890384 Fixed bugs, improved exception erro rhandling, blah, blah, blah (#RTFC) 2016-11-24 12:16:06 +00:00
Daniil Gentili
87e625ea9c Applied fixes from StyleCI 2016-11-23 20:04:51 +00:00
Daniil Gentili
109c887337 Fixed computation of flags, improved serialization, written basic authorization flow in testing.php (closes #21 and #22) 2016-11-23 20:04:29 +00:00
danogentili
c307357ebf BTW I'm doing this offline 2016-11-17 14:52:33 +03:00
danogentili
947a1a973f Cleaned up TL class, cleaned up API and APIFactory class, fixed bugs in the DataCenter class, fixed getting and setting of time deltas. 2016-11-17 13:49:32 +03:00
danogentili
e6093e65ac Fixed APIFactory, allowed reading of settings from the API class, changed the way of passing arguments to methods with the API (and APIFactory) class. 2016-11-16 17:37:27 +03:00
danogentili
b28aab6359 Fixed typo in the license warning 2016-11-16 17:18:35 +03:00
danogentili
1ded657739 Added APIFactory for calling namespaced mtproto methods, cleaned up testing.php and API.php, moved authorization keys, session_id, seq_no and time delta to the Connection class, added close_and_reopen method to the Connection class, improved DataCenter class, renamed Logging class to Logger, added a bit more logging, added setup_logger, switch_dc, init_authorization methods to the MTProto class, added parameter to disable automatic switching to nearest DC in write_client_info, added a try catch block in the create_auth_key method, fixed switching of DCs in wait_for_response method, added arguments check in the method calling methods, added a message id check in MessageHandler, added method_name_namespaced array in TL for APIFactory, renamed a lot of stuff and removed a few checks in the TL class, moved sendCode test call to testing.php 2016-11-16 17:05:27 +03:00
danogentili
b0a0e6d70c save 2016-09-24 17:58:17 +02:00
Daniil Gentili
0489abba48 Applied fixes from StyleCI 2016-09-12 20:28:44 +00:00
Daniil Gentili
8366d2c3b6 Reorganized even more code 2016-09-12 22:28:27 +02:00
danogentili
90af9857ff Added tests, added layer 55 json 2016-08-09 22:28:50 +02:00
danogentili
741f166640 Reorganized code 2016-08-08 18:10:13 +02:00
Daniil Gentili
36c69a5dd8 Applied fixes from StyleCI 2016-08-07 17:23:30 -04:00
danogentili
4a8826bdad Started to reorganize class 2016-08-07 23:23:10 +02:00
danogentili
b3bfacea85 Fixed serialization/deserialization, now fixing mess in prime number generation module... 2016-07-18 17:11:37 +02:00
Daniil Gentili
2187acbf09 Applied fixes from StyleCI 2016-07-14 09:15:50 -04:00
danogentili
8ddbfecc43 Translating... 2016-06-26 14:53:16 +02:00
danogentili
b5326b4cbb Let the madness begin! 2016-06-23 23:51:08 +02:00