Commit Graph

54 Commits

Author SHA1 Message Date
Daniil Gentili
4c3de2573d Bugfixes 2017-02-13 13:27:59 +01:00
Daniil Gentili
a25adf2d7c Bugfix 2017-02-12 21:53:16 +01:00
Daniil Gentili
30e87023d9 Apply fixes from StyleCI 2017-02-12 18:56:11 +00:00
Daniil Gentili
08a3a00c13 Important bugfixes 2017-02-12 19:55:49 +01:00
Manuel1510
999b3e7053 Added serialize method to API class as shortcut to Serialization::serialize (#62) 2017-02-11 15:35:10 +01:00
danogentili
632ca413d3 Implemented 2FA 2017-01-27 22:04:42 +03:00
Daniil Gentili
080942534e Added partial support for http/https connectins, cleaned up docs, updated to layer 62. 2017-01-25 23:16:22 +01:00
Daniil Gentili
2b84d543f7 Bugfix 2017-01-20 20:33:17 +04:00
Daniil Gentili
d9cdcfce2e Apply fixes from StyleCI 2017-01-18 09:26:13 +00:00
Daniil Gentili
d8d727d68a Bugfixes 2017-01-18 10:24:57 +01:00
Daniil Gentili
20d9b0fa6d Added file upload/download wrappers, decided to store full chat/user/channel constructors in $API->chats, fixed bugs 2017-01-07 12:39:11 +01: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
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
7515530b37 Apply fixes from StyleCI 2016-12-24 16:21:15 +00:00
Daniil Gentili
34865686da Working on updates 2016-12-24 17:20:45 +01:00
Daniil Gentili
cfc7cb4e04 Started writing update handlers 2016-12-23 12:19:13 +01:00
Daniil Gentili
f15631ab86 Apply fixes from StyleCI 2016-12-12 15:37:19 +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
545b5629f6 Fixed bugs 2016-11-18 20:50:19 +00:00
Daniil Gentili
b18c16aedc Applied fixes from StyleCI 2016-11-17 14:26:20 +00: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
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
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
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
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
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
f331931365 Refactored AuthorizationHandler and written DataCenter class 2016-10-09 17:42:39 +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
778ff42de2 Improved response handling module 2016-09-14 12:24:21 +02:00
danogentili
016bb106f6 Rewrote request/response module 2016-09-14 00:14:50 +02:00
Daniil Gentili
8366d2c3b6 Reorganized even more code 2016-09-12 22:28:27 +02:00
Daniil Gentili
09350d0cab Trying to fix the handling of responses 2016-08-23 05:50:53 -04:00
Daniil Gentili
b4f4fa5fb2 Trying to fix msg ids 2016-08-22 15:19:10 +02:00
danogentili
f8f24b9093 trying to fix seqno 2016-08-18 20:54:29 +02:00
Daniil Gentili
69b80a0d96 Applied fixes from StyleCI 2016-08-17 15:20:18 -04:00
danogentili
9789311157 Reorganized code 2016-08-17 21:19:54 +02:00
Daniil Gentili
8874d3ecfa Implemented lots of security checks and reorganized code. 2016-08-17 19:19:43 +02:00
Daniil Gentili
7a1f7c1145 Implemented tcp full, tcp intermediate and tcp abridged connections 2016-08-15 15:43:58 +02:00
Daniil Gentili
f99f432056 Finally fixed authorization 2016-08-15 02:37:59 +02:00
Daniil Gentili
f4d5a298ed Added support for tcp abridged and tcp intermediate connections. Added todo list in readme. 2016-08-10 03:14:35 +02:00