Commit Graph

762 Commits

Author SHA1 Message Date
Daniil Gentili
7d0efdb8ab Log 2017-04-23 18:03:37 +02:00
Daniil Gentili
cb59c006aa Bugfixes 2017-04-23 16:30:11 +02:00
Daniil Gentili
290c17b76a bugfix 2017-04-23 12:15:47 +02:00
Daniil Gentili
21d49d3fd3 small fix 2017-04-23 12:00:09 +02:00
Daniil Gentili
dbe526f2e5 Apply fixes from StyleCI 2017-04-22 15:59:05 +00:00
Daniil Gentili
20b60ffde4 log 2017-04-22 17:58:41 +02:00
Daniil Gentili
31e5a3968a Apply fixes from StyleCI 2017-04-22 15:50:31 +00:00
Daniil Gentili
34a1be3d77 bugfix 2017-04-22 17:45:36 +02:00
Daniil Gentili
662b156589 rollbar++++ 2017-04-22 17:10:06 +02:00
Daniil Gentili
d9c609346f Critical bugfix 2017-04-22 14:33:16 +02:00
Daniil Gentili
059afa7b6e 2 am 2017-04-22 02:29:56 +02:00
Daniil Gentili
2b8987d60e Apply fixes from StyleCI 2017-04-22 00:24:12 +00:00
Daniil Gentili
6a70bb7018 bugfix 2017-04-22 02:23:46 +02:00
Daniil Gentili
5a394e52dd Merge branch 'master' of https://github.com/danog/MadelineProto 2017-04-22 02:08:41 +02:00
Daniil Gentili
bc142cea4c fixes 2017-04-22 02:08:11 +02:00
Daniil Gentili
6143598de0 Apply fixes from StyleCI 2017-04-21 23:51:54 +00:00
Daniil Gentili
6997826bf4 fixes 2017-04-22 01:51:25 +02:00
Daniil Gentili
a3e2744099 Better error reporting 2017-04-22 01:38:20 +02:00
Daniil Gentili
558246ab90 Apply fixes from StyleCI 2017-04-21 19:24:29 +00:00
Daniil Gentili
d5b589877a bugfix 2017-04-21 21:24:07 +02:00
Daniil Gentili
18096de1e7 Apply fixes from StyleCI 2017-04-21 11:27:50 +00:00
Daniil Gentili
1eb2fc0b4f fix 2017-04-21 13:27:04 +02:00
Daniil Gentili
1ad81319a3 Apply fixes from StyleCI 2017-04-21 11:14:21 +00:00
Daniil Gentili
2bf609d044 Updated to layer 66, added CDN file download logic, added option to send messages longer than 4096 chars, fixed documentation, fixed bugs 2017-04-21 13:13:24 +02:00
Daniil Gentili
227273204a Merge branch 'master' of https://github.com/danog/MadelineProto 2017-04-11 10:32:51 +02:00
Daniil Gentili
b517b70b0c Documentation fixes 2017-04-11 10:32:23 +02:00
Daniil Gentili
25b7d05c53 Apply fixes from StyleCI 2017-04-11 08:09:42 +00:00
Daniil Gentili
23f2550568 chat_id can now be any peer object or a bot API id 2017-04-11 10:09:20 +02:00
Daniil Gentili
796d8ff14b Documentation fixes 2017-04-10 21:09:20 +02:00
Daniil Gentili
f3f93edbe9 bugfix 2017-04-10 14:39:46 +02:00
Daniil Gentili
b57f7e957d Merge branch 'master' of https://github.com/danog/MadelineProto 2017-04-10 13:52:06 +02:00
Daniil Gentili
f2b1078b41 10 2017-04-10 13:51:56 +02:00
Daniil Gentili
0a81bb4755 Apply fixes from StyleCI 2017-04-10 11:49:52 +00:00
Daniil Gentili
d8292e9add Documentation fixes, added bot_gif file id constructor 2017-04-10 13:49:32 +02:00
b97959b6c9 Documentation fixes 2017-04-10 12:02:23 +02:00
Daniil Gentili
246b2483a8 Apply fixes from StyleCI 2017-04-06 20:16:20 +00:00
Daniil Gentili
4e4abed790 Written documentation for get_pwr_chat and fixed some bugs 2017-04-06 20:15:59 +00:00
Daniil Gentili
90810ecda1 Apply fixes from StyleCI 2017-04-05 11:20:26 +00:00
Daniil Gentili
3f53a3749e Bugfix 2017-04-05 13:19:57 +02:00
Daniil Gentili
d787cef5de Apply fixes from StyleCI 2017-04-05 00:10:13 +00:00
Daniil Gentili
c90e353345 Fixed deserialization of Object constructors containing vectors (why are the even serialized without their type?) 2017-04-05 02:09:45 +02:00
Daniil Gentili
d41b58827e Apply fixes from StyleCI 2017-04-02 14:43:47 +00:00
Daniil Gentili
4d8ed0582e Merge branch 'master' of https://github.com/danog/MadelineProto 2017-04-02 16:43:27 +02:00
Daniil Gentili
c438a57513 Implemented VoIP key generation 2017-04-02 16:42:17 +02:00
Daniil Gentili
3b6678aac4 Apply fixes from StyleCI 2017-04-01 11:22:08 +00:00
Daniil Gentili
cd1040ec19 Fixed threading, fixed APIFactory, started working on calls 2017-04-01 13:20:57 +02:00
Daniil Gentili
564009cda9 Apply fixes from StyleCI 2017-03-31 23:35:07 +00:00
Daniil Gentili
bec41ebd61 bugfixes 2017-04-01 01:34:36 +02:00
Daniil Gentili
6e02d23f6c Apply fixes from StyleCI 2017-03-31 15:36:55 +00:00
Daniil Gentili
b19bfa0592 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-03-31 17:36:14 +02:00
Daniil Gentili
1c81d9dfe7 Fixed secret chats, implemented seqno checking in secret chats, made 32 bit fixes (with maths+++) and general bugfixes 2017-03-31 17:35:20 +02:00
Daniil Gentili
4d6725a64a Apply fixes from StyleCI 2017-03-26 17:30:22 +00:00
Daniil Gentili
87a5152927 Fixes to get_pwr_chat and bot API file ids 2017-03-26 19:29:52 +02:00
Daniil Gentili
44756267ad Apply fixes from StyleCI 2017-03-26 03:16:03 +00:00
Daniil Gentili
432fc32d05 32 bit bugfixes 2017-03-26 05:15:41 +02:00
Daniil Gentili
fa987e718b Apply fixes from StyleCI 2017-03-25 18:31:33 +00:00
Daniil Gentili
d9aeab0f91 Bugfixes 2017-03-25 19:31:18 +01:00
danogentili
cdc7a148de git add -A 2017-03-25 17:43:38 +03:00
Daniil Gentili
29d5683214 Apply fixes from StyleCI 2017-03-25 16:42:36 +00:00
danogentili
cde197a2bf bugfixes 2017-03-25 17:42:12 +03:00
Daniil Gentili
9f2a240d15 Apply fixes from StyleCI 2017-03-25 02:22:48 +00:00
Daniil Gentili
e99398ce75 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-03-25 03:22:22 +01:00
Daniil Gentili
fcf577b374 bugfixes 2017-03-25 03:22:07 +01:00
Daniil Gentili
62ce466afc Apply fixes from StyleCI 2017-03-25 01:41:29 +00:00
Daniil Gentili
9df224cec3 Huge performance improvements and bugfixes 2017-03-25 02:41:09 +01:00
Daniil Gentili
1cda4e6e3c bugfix 2017-03-25 01:07:00 +01:00
Daniil Gentili
7971237fe1 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-03-24 21:13:23 +01:00
Daniil Gentili
1b57f113aa Bugfixes, disabled incoming seqno check for the moment 2017-03-24 21:13:12 +01:00
Daniil Gentili
e556f317e2 Apply fixes from StyleCI 2017-03-24 20:01:36 +00:00
Daniil Gentili
c235afb30f Added support for 32 bit systems, imimplemented threading. 2017-03-24 21:01:08 +01:00
Daniil Gentili
d1142f7b12 Apply fixes from StyleCI 2017-03-12 03:16:07 +00:00
Daniil Gentili
ada0fc7df9 Added request_call function (EARLY ALPHA, WILL ONLY REQUEST A CALL ATM) 2017-03-12 04:15:51 +01:00
Daniil Gentili
bd1703d6fb Fixes to documentation 2017-03-11 20:06:30 +01:00
Daniil Gentili
f53927d3a7 Apply fixes from StyleCI 2017-03-11 18:55:56 +00:00
Daniil Gentili
dfd8bf93da HUGE bugfixes and code reorganization, implemented secret chats and a lua wrapper 2017-03-11 19:54:51 +01:00
Daniil Gentili
1485d38792 Apply fixes from StyleCI 2017-02-23 00:47:05 +00:00
Daniil Gentili
f7b3710c38 Yet Another Bugfix 2017-02-23 00:51:50 +01:00
Daniil Gentili
640b6e84d4 Bugfixes 2017-02-23 00:35:23 +01:00
Daniil Gentili
ec79809406 Apply fixes from StyleCI 2017-02-22 22:57:06 +00:00
Daniil Gentili
2cfc97b6bd Bugfixes 2017-02-22 23:55:37 +01:00
Daniil Gentili
f63fd6fecf Apply fixes from StyleCI 2017-02-22 19:45:45 +00:00
Daniil Gentili
53102f9219 Added support for arabic chars and other utf8 chars, and a nice RTFM paragraph in the README 2017-02-22 20:45:20 +01:00
Daniil Gentili
694f5e5ead Apply fixes from StyleCI 2017-02-21 20:05:09 +00:00
danogentili
3154b97763 Bugfixes 2017-02-21 21:04:37 +03:00
Daniil Gentili
ec5e23131e Bugfixes 2017-02-18 23:33:48 +01:00
Daniil Gentili
4a27238af4 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-18 17:32:25 +01:00
Daniil Gentili
8ff7c68a55 Fixes to html/markdown parsing 2017-02-18 17:32:08 +01:00
Daniil Gentili
b60ca2c7ee Apply fixes from StyleCI 2017-02-17 21:36:32 +00:00
Daniil Gentili
3ceb34c3b0 Bugfix 2017-02-17 22:36:16 +01:00
danogentili
8358a58839 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-16 21:25:16 +03:00
Daniil Gentili
b83d5bcc84 Apply fixes from StyleCI 2017-02-16 20:18:41 +00:00
danogentili
27d588bbf4 Bugfixes 2017-02-16 21:25:08 +03:00
danogentili
8f376e2c37 Bugfixes 2017-02-16 21:18:18 +03:00
Daniil Gentili
1b9c925fc9 Apply fixes from StyleCI 2017-02-16 19:06:09 +00:00
Daniil Gentili
7e3abd0fe1 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-16 20:05:27 +01:00
Daniil Gentili
2a04787c98 Switched to native html parser 2017-02-16 20:04:57 +01:00
Daniil Gentili
5811c14df1 Apply fixes from StyleCI 2017-02-16 04:32:16 +00:00
Daniil Gentili
c021ae362d Bugfixes 2017-02-16 05:31:54 +01:00
Daniil Gentili
d0f459c5c4 Apply fixes from StyleCI 2017-02-16 03:55:47 +00:00
Daniil Gentili
38d6ee07b3 Implemented bot API object conversion, file locking for serialization, bot API file ids 2017-02-16 04:55:10 +01:00
Daniil Gentili
f93d956d0e Apply fixes from StyleCI 2017-02-13 14:15:39 +00:00
Daniil Gentili
b8710f8f91 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-13 15:15:19 +01:00
Daniil Gentili
12e8f1c050 Bugfixes to html parsing 2017-02-13 15:14:37 +01:00
Daniil Gentili
bfc7684fee Apply fixes from StyleCI 2017-02-13 12:28:45 +00:00
Daniil Gentili
4c3de2573d Bugfixes 2017-02-13 13:27:59 +01:00
Daniil Gentili
5b0d6c3ee5 Apply fixes from StyleCI 2017-02-13 03:45:36 +00:00
Daniil Gentili
c86e35645e Implemented markdown and html parsing 2017-02-13 04:33:06 +01:00
Daniil Gentili
a25adf2d7c Bugfix 2017-02-12 21:53:16 +01:00
danogentili
3a29b36e24 Small documentation fixes 2017-02-12 20:34:54 +03:00
danogentili
23a6ce1383 Small documentation fixes 2017-02-12 20:32:28 +03: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
danogentili
dba6b91f41 Bugfix 2017-02-11 19:40:38 +03:00
Manuel1510
999b3e7053 Added serialize method to API class as shortcut to Serialization::serialize (#62) 2017-02-11 15:35:10 +01:00
Daniil Gentili
cfcc78709e Bugfix 2017-02-11 15:21:35 +01:00
Daniil Gentili
7a05342e47 Apply fixes from StyleCI 2017-02-11 14:18:18 +00:00
Daniil Gentili
81c1bcd208 HUGE performance improvements (run composer update), started to work on threading 2017-02-11 15:16:57 +01:00
Daniil Gentili
f7f80241f2 Trying to fix bugs in update handling 2017-02-05 21:07:30 +01:00
Daniil Gentili
abeb0b9c5b SEO 2017-02-05 15:15:48 +01:00
Daniil Gentili
9a7cda471d Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-05 12:57:02 +01:00
Daniil Gentili
2ac528b453 Bugfix 2017-02-05 12:56:53 +01:00
Daniil Gentili
6e6005759a Apply fixes from StyleCI 2017-02-05 11:01:46 +00:00
Daniil Gentili
b7955366f2 Store dc_id in InputFileLocation returned by get_download_info 2017-02-05 12:01:22 +01:00
Daniil Gentili
af0cf569db Apply fixes from StyleCI 2017-02-05 01:03:18 +00:00
Daniil Gentili
8a88dc8650 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-05 02:03:00 +01:00
Daniil Gentili
46acfb5812 Bugfixes to update and peer handling 2017-02-05 02:02:39 +01:00
Vitor Mattos
a8baba6057 Documentation in Serialization class (#57)
* Documentation in Serialization class

* phpcs fix

* phpcs fi

* phpcs fix

* phpcs fix

* phpci fix

* phpci fix

* Fix in var type

* sintax fix

* fix
2017-02-04 16:28:07 +01:00
Daniil Gentili
cd0ca879e7 Apply fixes from StyleCI 2017-02-02 15:16:04 +00:00
Daniil Gentili
ce4df5a10d I DONT GET EMPTY UPDATES 2017-02-02 16:15:08 +01:00
Daniil Gentili
a060e84da9 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-02-02 11:45:25 +01:00
Daniil Gentili
bda80a98b0 debugging 2017-02-02 11:45:00 +01:00
Daniil Gentili
2e7e07a49c Apply fixes from StyleCI 2017-02-01 17:11:07 +00:00
Daniil Gentili
a1f464b46a Bugfix 2017-02-01 18:10:18 +01:00
Daniil Gentili
979e29ac69 Bugfix 2017-02-01 01:19:14 +01:00
Daniil Gentili
6179e3a4ee bugfixes 2017-01-30 13:08:10 +01:00
Daniil Gentili
e4c25653c7 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-30 12:49:33 +01:00
Daniil Gentili
d96068ac81 Bugfix 2017-01-30 12:48:58 +01:00
Daniil Gentili
7ffdc0ee48 Apply fixes from StyleCI 2017-01-30 11:30:31 +00:00
Daniil Gentili
36294c0b6a Bugfix 2017-01-30 12:30:13 +01:00
Daniil Gentili
7f5b798427 Apply fixes from StyleCI 2017-01-29 21:42:53 +00:00
Daniil Gentili
aadd278c5a Bugfix 2017-01-29 21:42:21 +00:00
Daniil Gentili
3d203fc128 Apply fixes from StyleCI 2017-01-29 17:53:06 +00:00
Daniil Gentili
896956fe78 Log errors only if the logger is constructed 2017-01-29 18:52:48 +01:00
Daniil Gentili
c5340d4565 Apply fixes from StyleCI 2017-01-29 14:39:37 +00:00
Daniil Gentili
b33ec1da0e utf8ize 2017-01-29 14:38:22 +00:00
Daniil Gentili
7d388f9cbe Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-29 13:12:48 +01:00
Daniil Gentili
372562b645 Bugfix 2017-01-29 13:12:29 +01:00
Daniil Gentili
a686a0a886 Apply fixes from StyleCI 2017-01-29 01:47:20 +00:00
Daniil Gentili
77d735be0c Added pwr_webhook update handler 2017-01-29 02:47:06 +01:00
Daniil Gentili
195d0a273c Bugfix 2017-01-28 17:58:48 +01:00
Daniil Gentili
71a3cc3add Apply fixes from StyleCI 2017-01-28 15:34:48 +00:00
Daniil Gentili
b0ff129e6f gotta catch em all 2017-01-28 16:34:30 +01:00
Daniil Gentili
0a71797026 Donut break stuff pls 2017-01-28 00:46:30 +01:00
Daniil Gentili
a20149b998 Bugfix 2017-01-27 23:26:55 +01:00
danogentili
c8959a0837 Improved logging 2017-01-27 22:12:45 +03:00
Daniil Gentili
0824470b71 Apply fixes from StyleCI 2017-01-27 21:05:24 +00:00
danogentili
632ca413d3 Implemented 2FA 2017-01-27 22:04:42 +03:00
danogentili
c18bdd2793 Fixed tests, adding support for PHP 5.4 2017-01-27 15:19:16 +03:00
Daniil Gentili
f9147b8c18 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-26 16:16:53 +01:00
Daniil Gentili
b25d926acd Let's not break stuff 2017-01-26 16:16:31 +01:00
Daniil Gentili
6e3e9e5d12 Undo breaking change and speed up key fingerprint matching 2017-01-26 14:29:58 +01:00
Daniil Gentili
7fd1e08376 Apply fixes from StyleCI 2017-01-26 13:30:17 +00:00
Daniil Gentili
7df2526d9c Improve logging 2017-01-26 13:12:01 +01:00
Daniil Gentili
75fe9bafa2 Increase logging by default 2017-01-26 04:04:43 +01:00
Daniil Gentili
23d7922d42 Removed web API from main branch 2017-01-26 04:02:14 +01:00
Daniil Gentili
e6255d088c Apply fixes from StyleCI 2017-01-26 02:56:24 +00:00
Daniil Gentili
0430264c4e Implemented logging levels 2017-01-26 03:50:09 +01:00
Daniil Gentili
5a879f9c06 Clean up code 2017-01-26 02:52:04 +01:00
Daniil Gentili
563b0f614e Apply fixes from StyleCI 2017-01-25 22:16:49 +00: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
4a51b4ad9b Bugfix 2017-01-25 11:52:16 +01:00
Daniil Gentili
efe459b818 Bugfixes 2017-01-24 18:31:04 +01:00
Gregory Ostrovsky
c4735c9a61 Move flood waiting time value to settings (#50) 2017-01-24 16:32:39 +01:00
Daniil Gentili
5751bbca8c Apply fixes from StyleCI 2017-01-23 17:36:22 +00:00
Daniil Gentili
07db79dcb6 Bugfix 2017-01-23 18:35:53 +01:00
Daniil Gentili
47a77c498b Bugfixes 2017-01-23 17:27:20 +01:00
Daniil Gentili
970b79d973 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-23 16:29:28 +01:00
Daniil Gentili
596fca4dc9 Made method name searching case insensitive 2017-01-23 16:29:07 +01:00
Vitor Mattos
36118ee452 Doc (#47)
* Implemented automatic PHPDoc generate

* fix syntax

* fix syntax

* bugfix doc

* bugfix syntax

* bufgix syntax

* Update AnnotationsBuilder.php
2017-01-22 17:40:56 +01:00
Daniil Gentili
f4c43d9ef3 Apply fixes from StyleCI 2017-01-22 13:26:12 +00:00
Daniil Gentili
3d5e0baee9 pwr fixes 2017-01-22 02:34:56 +01:00
danogentili
e469f05d64 Readd support for php 5.6 2017-01-21 18:13:28 +03:00
Vitor Mattos
02c94c4049 Performance increase (#46)
* Upgrade `phpseclib/phpseclib` from `2.0.4` to `dev-master`
2017-01-21 00:20:56 +01:00
Vitor Mattos
3bb266e20b .env and performance improvements (#45)
* * Changes for use .env file and not a php with sensible data

* * Changes for use .env file and not a php with sensible data

* * Changes for use .env file and not a php with sensible data

* * Changes for use .env file and not a php with sensible data

* Changes for use .env files
* Moving $settings to .env file

* Update testing.php

syntax

* Update testing.php

* * More variables moved to environments file and updated .env.example file
* improvement in defining device_model and system_version
* Performance improvements in defining settings
* removed desnecessary call to unserialize class in testing file
2017-01-20 21:02:21 +01:00
Daniil Gentili
2b84d543f7 Bugfix 2017-01-20 20:33:17 +04:00
mix6s
2e23a2335c Fix typo in MsgIdHandler::check_message_id (#44)
* Fix set_channel_state method

* Fix some memory leak problems

* Fix code style

* Fix typo
2017-01-20 17:07:34 +01:00
Daniil Gentili
15cc8f6e82 Apply fixes from StyleCI 2017-01-20 00:43:22 +00:00
Daniil Gentili
b15eab0832 Handle channel difference too long 2017-01-20 01:42:41 +01:00
Daniil Gentili
af4b916056 Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-20 00:55:42 +01:00
Daniil Gentili
cf188b480a Remove debugging stuff 2017-01-20 00:55:27 +01:00
Daniil Gentili
c1516bf75b Fixes to the documentation 2017-01-19 23:02:27 +01:00
Daniil Gentili
de219c5f96 Apply fixes from StyleCI 2017-01-19 21:43:52 +00:00
Daniil Gentili
acd4b86ff6 Fixed handling bad_msg_notifications 2017-01-19 22:43:36 +01:00
mix6s
fdca20fa41 Memory leak fix (#42)
* Fix set_channel_state method

* Fix some memory leak problems

* Fix code style
2017-01-19 12:19:34 +01:00
Daniil Gentili
a224aaddda Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-18 13:53:16 +01:00
Daniil Gentili
d53e32c9ef Fix downloading of files on different dcs 2017-01-18 13:51:52 +01: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
bd40ca528a pony 2017-01-17 22:00:14 +01:00
Daniil Gentili
4cfd96152f Apply fixes from StyleCI 2017-01-17 20:53:24 +00:00
Daniil Gentili
5a05e81fda Bugfix 2017-01-17 21:49:53 +01:00
Daniil Gentili
97e2ae9806 Apply fixes from StyleCI 2017-01-17 15:45:41 +00:00
Daniil Gentili
bc40bd65f9 CLEARSTATCACHE PLS NOW 2017-01-17 16:44:29 +01:00
Daniil Gentili
64afc0290b Bugfix 2017-01-17 01:52:52 +01:00
Daniil Gentili
494fdcfdd4 Apply fixes from StyleCI 2017-01-16 16:02:54 +00:00
Daniil Gentili
9c9b7b3c7d speed+++++ 2017-01-16 17:01:27 +01:00
Daniil Gentili
7f7bb01e64 Bugfixes 2017-01-16 15:00:27 +01:00
Daniil Gentili
60a9d7e5f5 fix typo 2017-01-16 02:54:13 +01:00
Daniil Gentili
6e6fa9671e Apply fixes from StyleCI 2017-01-16 00:57:03 +00:00
Daniil Gentili
cac6b68920 Lock while serializing 2017-01-16 01:54:51 +01:00
Daniil Gentili
3d1486cc0d Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-15 18:00:34 +01:00
Daniil Gentili
6f32ee51ef Fix ipv6 2017-01-15 18:00:30 +01:00
Daniil Gentili
92e8e4a00d Apply fixes from StyleCI 2017-01-15 12:07:40 +00:00
Daniil Gentili
0e348edd53 Fix wrapper 2017-01-15 13:06:40 +01:00
Daniil Gentili
0fe0b925aa Merge branch 'master' of https://github.com/danog/MadelineProto 2017-01-15 03:06:00 +01:00
Daniil Gentili
934a9a39f1 lalala 2017-01-15 03:05:37 +01:00
Daniil Gentili
07da38447f Apply fixes from StyleCI 2017-01-15 01:11:45 +00:00
Daniil Gentili
5e5deca720 Bugfixes 2017-01-15 02:10:44 +01:00
Daniil Gentili
cec3294a3a Apply fixes from StyleCI 2017-01-14 23:25:15 +00:00
Daniil Gentili
6711f6e814 Bugfixes 2017-01-15 00:24:14 +01:00
Daniil Gentili
491c15e5e3 Trying to fix bugs 2017-01-14 17:43:46 +01:00
Daniil Gentili
ead78628ed Provide from 2017-01-14 16:31:31 +01:00
Daniil Gentili
9a21b861b5 Apply fixes from StyleCI 2017-01-14 11:54:50 +00:00
Daniil Gentili
3b861dcd34 Bugfixes 2017-01-14 12:53:50 +01:00
Daniil Gentili
8bb08d6b4a Apply fixes from StyleCI 2017-01-12 10:22:42 +00:00
Daniil Gentili
ca53c1c65f Do not doxx urself pls 2017-01-12 11:21:54 +01:00
Daniil Gentili
f27fa2717e Apply fixes from StyleCI 2017-01-12 10:05:13 +00:00
Daniil Gentili
3b8cc9d5ee Bugfixes and added support for downloading only specified ranges of a file 2017-01-12 11:04:17 +01:00
Daniil Gentili
7343ae83cf Fixdd bugs 2017-01-11 11:30:10 +01:00
Daniil Gentili
0cdcccfc43 Fixed misteaks in documentations 2017-01-11 10:31:33 +01:00
Daniil Gentili
12bd1ee1d4 Apply fixes from StyleCI 2017-01-10 21:28:34 +00:00
Daniil Gentili
110aa57888 Fixed bugs 2017-01-10 22:27:25 +01:00
Daniil Gentili
40f7548624 Fixed more bugs 2017-01-09 17:23:00 +01:00
Daniil Gentili
bb15d89124 Fixed bugs 2017-01-09 16:26:41 +01:00
Daniil Gentili
251adef8ce Apply fixes from StyleCI 2017-01-08 14:22:21 +00:00
danogentili
2012a3e1dd Optimized upload and download 2017-01-08 15:21:35 +03:00
Daniil Gentili
8f1b9fcf0f Apply fixes from StyleCI 2017-01-07 11:40:51 +00: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
f54fb0b6b3 Written first MadelineProto bot, fixed update management, fixed bugs 2017-01-04 12:22:03 +00:00
Daniil Gentili
cc7c983929 Moved old docs to normal github, github pages cannot handle them 2017-01-02 23:28:51 +00:00
Daniil Gentili
fa4bc8a9e5 Apply fixes from StyleCI 2017-01-02 20:19:06 +00:00
Daniil Gentili
95ebf6147b Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55 2017-01-02 20:04:36 +00:00
Daniil Gentili
43ba430b6d Apply fixes from StyleCI 2017-01-02 18:52:29 +00:00
Daniil Gentili
ec23e14c68 Written module to translate tl scheme files, turned documentation script into a class, separated ed the MTProto and telegram docs, added layer 46 and layer 55 docs 2017-01-02 18:50:37 +00:00
Daniil Gentili
64aca6040b Apply fixes from StyleCI 2017-01-01 16:14:24 +00:00
danogentili
378dd9ac1d Added first alpha of web version and fixed bugs 2017-01-01 17:13:59 +03:00
Daniil Gentili
2f8149c4d9 Apply fixes from StyleCI 2017-01-01 16:13:19 +00:00
danogentili
96efd18e13 Added first alpha of web version and fixed bugs 2017-01-01 17:12:46 +03:00
Daniil Gentili
396261a25b Apply fixes from StyleCI 2016-12-31 11:32:15 +00:00
Daniil Gentili
ad9591c71b Fixed some bugs 2016-12-31 12:32:02 +01:00
Daniil Gentili
b3d75b106c Apply fixes from StyleCI 2016-12-30 20:21:55 +00:00
danogentili
bfc665ace0 Fixed bugs 2016-12-30 23:21:36 +03:00
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
7b36562cfb Fixed misteak 2016-12-27 11:45:57 +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
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
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
1940195949 Apply fixes from StyleCI 2016-12-23 11:19:37 +00:00
Daniil Gentili
cfc7cb4e04 Started writing update handlers 2016-12-23 12:19:13 +01:00
Daniil Gentili
7a9e258de1 Apply fixes from StyleCI 2016-12-21 10:31:59 +00:00
Daniil Gentili
7e9383981c Fixed handling of all service messages exactly as described in the API (closes #20), fixed bug in authorization module, added hover logo. 2016-12-21 11:31:34 +01:00
danogentili
cb7a07f2b0 Now an exception won't be thrown if the ack methods can't find the message id. 2016-12-19 21:07:11 +03:00
Daniil Gentili
9fd4b22c42 Apply fixes from StyleCI 2016-12-19 17:58:09 +00:00
danogentili
fa1183b25e Merge branch 'master' of https://github.com/danog/MadelineProto 2016-12-19 18:57:29 +03:00
danogentili
04a2504c17 Fixed a few bugs, switched to traits for MTProtoTools modules, written documentation creator and added documentation 2016-12-19 18:56:52 +03:00
Daniil Gentili
f15631ab86 Apply fixes from StyleCI 2016-12-12 15:37:19 +00:00
Daniil Gentili
ba740d7be7 Throw exception if not running on 64 bit system 2016-12-12 15:36:46 +00:00
Daniil Gentili
1611c0f8ec Fixed bugs 2016-11-30 21:46:46 +00:00
Daniil Gentili
80ae7e9478 Apply fixes from StyleCI 2016-11-29 23:02:37 +00:00
Daniil Gentili
0c578f25c9 Fixed response handling 2016-11-29 23:02:17 +00:00
danogentili
0cc2ea1cef Improved response handling 2016-11-29 20:45:06 +03:00
Daniil Gentili
e2eb4bf07b Apply fixes from StyleCI 2016-11-29 13:35:11 +00:00
Daniil Gentili
c62d8cc069 Added additional error handling 2016-11-29 13:25:11 +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
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
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
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
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
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
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
778ff42de2 Improved response handling module 2016-09-14 12:24:21 +02:00
Daniil Gentili
369673b5e9 Applied fixes from StyleCI 2016-09-13 22:15:14 +00:00
danogentili
016bb106f6 Rewrote request/response module 2016-09-14 00:14:50 +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
Daniil Gentili
5fe5673fb7 Applied fixes from StyleCI 2016-09-10 17:53:28 +00:00
danogentili
c51e4cb9d8 Cleaning up..: 2016-09-10 19:53:08 +02:00
Daniil Gentili
3a635d8bb0 Applied fixes from StyleCI 2016-08-23 09:51:08 +00:00
Daniil Gentili
09350d0cab Trying to fix the handling of responses 2016-08-23 05:50:53 -04:00
Daniil Gentili
5070c4616e Applied fixes from StyleCI 2016-08-22 20:05:53 +00:00
danogentili
4f3ce8332b Trying to fix bugs 2016-08-22 22:05:41 +02:00
danogentili
e8ba8feb92 Starting to handle acks 2016-08-22 21:24:22 +02:00
danogentili
a9ba7a659e Trying to fix seqno 2016-08-22 19:22:06 +02:00
Daniil Gentili
3177d57fdd Applied fixes from StyleCI 2016-08-22 13:19:28 +00:00
Daniil Gentili
b4f4fa5fb2 Trying to fix msg ids 2016-08-22 15:19:10 +02:00
Daniil Gentili
01e54fe5ff Applied fixes from StyleCI 2016-08-18 14:54:40 -04:00
danogentili
f8f24b9093 trying to fix seqno 2016-08-18 20:54:29 +02:00
Daniil Gentili
d96fab3c89 Applied fixes from StyleCI 2016-08-18 13:08:14 -04:00
Daniil Gentili
4bf443cd64 Moved data sending/recieving functions to Connection calss, implemented other security checks 2016-08-18 19:07:58 +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
bf0f0de385 Applied fixes from StyleCI 2016-08-17 13:20:00 -04: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
1f858ac162 Applied fixes from StyleCI 2016-08-14 20:38:17 -04:00
Daniil Gentili
f99f432056 Finally fixed authorization 2016-08-15 02:37:59 +02:00
Daniil Gentili
2bc5dc62b7 Applied fixes from StyleCI 2016-08-14 15:38:40 -04:00
danogentili
a7acfb388c Trying to make the ige module work 2016-08-14 21:38:32 +02:00
Daniil Gentili
994014f629 Applied fixes from StyleCI 2016-08-14 14:00:39 -04:00
danogentili
e284fb8ef6 Finally fixed req_DH_params method 2016-08-14 20:00:30 +02:00
danogentili
6994d614ac Updated prime module 2016-08-11 23:11:06 +02:00
danogentili
3abf9fbed1 Remove var_dump 2016-08-10 14:55:50 +02:00
Daniil Gentili
bf218ae218 Applied fixes from StyleCI 2016-08-10 08:51:37 -04:00
danogentili
e7487ab60c Fixed prime module, removed dependencies from repository, adapted for hhvm. 2016-08-10 14:51:28 +02:00
Daniil Gentili
a505017c45 Applied fixes from StyleCI 2016-08-10 07:57:28 -04:00
danogentili
ad1552df63 Updated error handlign 2016-08-10 13:56:35 +02:00
danogentili
e1fc751728 Refactor 2016-08-10 13:27:50 +02:00
Daniil Gentili
0457aa930e Applied fixes from StyleCI 2016-08-09 21:14:58 -04: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
Daniil Gentili
7794a5ab2d Applied fixes from StyleCI 2016-08-09 17:32:43 -04:00
danogentili
9d4c53795b refactoring 2016-08-09 23:32:34 +02:00
Daniil Gentili
34922d8c1f Applied fixes from StyleCI 2016-08-09 16:29:06 -04:00
danogentili
90af9857ff Added tests, added layer 55 json 2016-08-09 22:28:50 +02:00
Daniil Gentili
f037212ac8 Fixed some bugs 2016-08-09 21:47:28 +02:00