Commit Graph

335 Commits

Author SHA1 Message Date
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
Daniil Gentili
37fa11e81a uhh 2016-10-18 17:11:33 +00:00
Daniil Gentili
9a11d42657 Applied fixes from StyleCI 2016-10-18 16:46:55 +00:00
Daniil Gentili
7b468c9d0d Fixed serialization of vectors, written bind_temp_auth_key function 2016-10-18 16:46:31 +00:00
Daniil Gentili
d1e7cce35b Trying to make sendCode work 2016-10-18 14:44:44 +00:00
Daniil Gentili
2badf3f35e Applied fixes from StyleCI 2016-10-18 13:43:24 +00:00
Daniil Gentili
6c94e2426a TL now uses an istantiated version of PHPStruct, TLConstructor and TLMethod now decode vectors and optional params 2016-10-18 13:42:14 +00:00
Daniil Gentili
737c4e286b Applied fixes from StyleCI 2016-10-14 15:16:38 +00:00
danogentili
f3f7772f6e Fixed serialization of arrays 2016-10-14 17:16:23 +02:00
Daniil Gentili
e7da05e617 Throw exception when trying to serialize unknown types 2016-10-14 12:29:03 +02:00
Daniil Gentili
6798e2f4c1 Applied fixes from StyleCI 2016-10-13 22:49:54 +00:00
danogentili
028cadc349 First step to initConnection 2016-10-14 00:49:43 +02:00
Daniil Gentili
55e3905495 Applied fixes from StyleCI 2016-10-13 21:22:32 +00:00
danogentili
0459498eb8 Fixed handling of certain responses when named params aren't used and beautified logging 2016-10-13 23:22:11 +02:00
Daniil Gentili
aed44236d1 Applied fixes from StyleCI 2016-10-11 15:30:11 +00:00
Daniil Gentili
a540b0a4cf Improved logging, extended the tools class instead of calling its methods statically, improved generation and checking of message ids 2016-10-11 17:29:47 +02:00
danogentili
528faf16b0 Improved logging 2016-10-11 00:19:39 +02:00
Daniil Gentili
40d6deaa13 Applied fixes from StyleCI 2016-10-10 22:05:43 +00:00
danogentili
669e1d8a02 Made the prime module work natively (closes #6) thanks to https://github.com/LonamiWebs/Telethon/blob/master/telethon/crypto/factorizator.py 2016-10-11 00:05:28 +02:00
danogentili
e4bf3fcc32 Merge branch 'master' of https://github.com/danog/MadelineProto 2016-10-09 19:47:28 +02:00
danogentili
a7d7eae509 Fixed connection recreation 2016-10-09 19:47:19 +02:00
Daniil Gentili
4b136d5f42 Applied fixes from StyleCI 2016-10-09 17:40:33 +00:00
danogentili
adff633caf Fixed datacenter class 2016-10-09 19:40:20 +02:00
danogentili
352a7a249f update 2016-10-09 17:43:46 +02:00
Daniil Gentili
f27a79561f Applied fixes from StyleCI 2016-10-09 15:42:53 +00:00
danogentili
f331931365 Refactored AuthorizationHandler and written DataCenter class 2016-10-09 17:42:39 +02:00
Daniil Gentili
246579d645 Applied fixes from StyleCI 2016-10-07 09:57:07 +00:00
2012mjm
b4cd001fe9 + Add more comments to understand code (#13)
- Regularizing the code for better understanding
2016-10-07 11:56:58 +02:00
danogentili
9affe20857 Added a bit of documentation 2016-10-07 00:36:18 +02:00
Daniil Gentili
62dab809a3 Update README.md 2016-10-03 14:04:03 +02:00
Daniil Gentili
ec67e91c66 Create CONTRIBUTING.md 2016-10-03 13:53:56 +02:00
Daniil Gentili
74bc308215 Applied fixes from StyleCI 2016-09-24 15:58:31 +00:00
danogentili
b0a0e6d70c save 2016-09-24 17:58:17 +02:00
danogentili
bedab1388d Fixed salt 2016-09-15 15:00:08 +02:00
Daniil Gentili
669b6950a8 My fingers are typing some good stuff while my head is thinking about ponies 2016-09-14 23:44:12 +02:00
Daniil Gentili
607c966462 Applied fixes from StyleCI 2016-09-14 21:10:55 +00:00
danogentili
700f4ddbdc Finished rewriting response management module 2016-09-14 23:10:34 +02:00
Daniil Gentili
10d7b3b40b Applied fixes from StyleCI 2016-09-14 19:37:54 +00:00
Daniil Gentili
66e73e20a2 Rewriting connection module.. 2016-09-14 21:37:16 +02:00
Daniil Gentili
97fe13daad Rewriting connection module.. 2016-09-14 21:37:08 +02:00
Daniil Gentili
6179589fb1 Removed save file 2016-09-14 12:25:28 +02:00
Daniil Gentili
c0932c7db2 Removed save file 2016-09-14 12:25:06 +02:00