1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-16 06:26:55 +01:00
Commit Graph

1376 Commits

Author SHA1 Message Date
Daniil Gentili
95ba5a33f0 Merge branch 'master' of https://github.com/danog/MadelineProto 2016-11-29 00:49:13 +00:00
Daniil Gentili
2121777bb1 Added encrypted session file 2016-11-29 00:49:01 +00:00
Daniil Gentili
a3b1759b5b Apply fixes from StyleCI 2016-11-29 00:48:19 +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
danogentili
1d9ea6ad0c Made small fixes to TL 2016-11-26 16:12:36 +03:00
Daniil Gentili
546d7cc46e Apply fixes from StyleCI 2016-11-26 10:50:39 +00:00
Daniil Gentili
496d6790bc Fixed handling of bad_server_salt notifications, improved switching of DCs when user is authorized, session ids and sequence numbers will now be resetted on deserialization 2016-11-26 10:50:20 +00:00
Daniil Gentili
dae2375bf3 Switch back to edge environment on travis and fix bug on datacenter switch 2016-11-25 21:59:17 +00:00
Daniil Gentili
6b9391d74d Trying to enable ipv6 on travis... 2016-11-25 21:38:24 +00:00
Daniil Gentili
2a95f6eb03 Apply fixes from StyleCI 2016-11-25 21:21:34 +00:00
Daniil Gentili
323359897b #AUGAA 2016-11-25 21:21:13 +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
1dca7843a9 Added instructions for dependency installation in the docs, trying to fix composer 2016-11-24 23:40:19 +00:00
Daniil Gentili
a660bb4c68 fixes to docs 2016-11-24 23:19:15 +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
d7c098087e Trying to fix flags 2016-11-23 15:58:38 +03:00
Daniil Gentili
0767d1bc80 Updated to layer 57 and added logging 2016-11-22 16:37:48 +00:00
Daniil Gentili
dee7302341 Updated to layer 57 2016-11-22 16:22:30 +00:00
Daniil Gentili
0db89eaeb1 Trying to fix serialization of flags... 2016-11-22 12:13:29 +00:00
Daniil Gentili
17f0de5e73 Write client info after binding keys 2016-11-18 21:27:58 +00:00
Daniil Gentili
c39c6a8511 Applied fixes from StyleCI 2016-11-18 20:50:38 +00:00
Daniil Gentili
545b5629f6 Fixed bugs 2016-11-18 20:50:19 +00:00
Daniil Gentili
83e9ff8de9 Applied fixes from StyleCI 2016-11-17 17:44:04 +00:00
danogentili
82dc195483 Fixed bugs 2016-11-17 20:43:52 +03:00
Daniil Gentili
b18c16aedc Applied fixes from StyleCI 2016-11-17 14:26:20 +00:00
danogentili
ddf5bc7050 Fixed crc32 2016-11-17 17:25:26 +03:00
danogentili
12e2b0ab8d Updated tags 2016-11-17 15:05:31 +03:00
danogentili
c307357ebf BTW I'm doing this offline 2016-11-17 14:52:33 +03:00
danogentili
5a22fd0665 pony 2016-11-17 14:32:56 +03:00
danogentili
5a8e490e6d Updated dependencies 2016-11-17 14:27:21 +03:00
danogentili
4060b5c854 Updated docs 2016-11-17 14:10:22 +03:00
danogentili
7552ba13c7 Fixed crc32 2016-11-17 14:07:29 +03:00
danogentili
b0c7c79d3a Removed useless __destruct methods 2016-11-17 14:02:22 +03:00
danogentili
a35812c5f1 Store future salts in class variable 2016-11-17 13:56:11 +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
caa05510a0 Cleaned up RSA class 2016-11-16 18:11:50 +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
f78ead188a I do love logging 2016-11-16 17:10:06 +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
Daniil Gentili
49a555d99f Applied fixes from StyleCI 2016-11-15 20:43:20 +00:00
danogentili
417d9343c2 Fixed binding of authorization keys. Finally can use auth.sendCode method. 2016-11-15 23:42:52 +03:00
danogentili
6720199a33 Added error descriptions 2016-11-15 16:31:32 +03:00
Daniil Gentili
84d25bfaa2 Applied fixes from StyleCI 2016-11-15 12:46:25 +00:00
danogentili
67de600bb8 Removed useless dependencies, made logging class static, made access to the PHPStruct class static, added default_dc setting in the settings array 2016-11-15 15:39:42 +03:00