Commit Graph

248 Commits

Author SHA1 Message Date
d2010cc259 Merge 2019-08-29 18:34:33 +02:00
d75fdd5e9d Update builder 2019-08-26 01:02:56 +02:00
ea2476b1cf Update builder 2019-08-25 23:47:47 +02:00
a951ae380f
Async magnaluna and more async bugfixes (#667) 2019-07-18 23:48:35 +02:00
005d762a8f Cast to string to avoid issues with Bytes objects 2019-07-16 15:18:37 +02:00
bdc3ff6d8b bugfixes 2019-07-06 19:27:13 +02:00
d5c58af013 Fix php 5 build 2019-07-03 13:11:26 +02:00
19ed075f70 Fix build 2019-07-03 12:34:19 +02:00
53bf8176f5 Stuffs 2019-07-01 13:14:56 +02:00
c451471f78 Setting alias 2019-07-01 10:04:34 +02:00
37a9133a6f Improved 2FA 2019-06-30 15:12:43 +02:00
4089efe8b0 Automatically subrelease specified builds 2019-06-21 21:28:15 +02:00
b40a9570c0 Bugfixes and improvements (subrelease) 2019-06-21 21:20:44 +02:00
e7fff53d9d Disable zlib on PHP 5.6 2019-06-21 16:04:05 +02:00
dbba5a1583 Remove abstract static methods in PHP 5.6 2019-06-20 18:34:05 +02:00
948cf8162e Test modified artax too 2019-06-20 10:28:38 +02:00
371020ea83 Fix conversion of throwables 2019-06-19 14:59:32 +02:00
982e0940f1 Fix path 2019-06-19 11:36:07 +02:00
ab52516113 Just check without removing output 2019-06-19 11:27:42 +02:00
3f03a7b21a Conversion bugfixes 2019-06-19 11:18:51 +02:00
282d0b1655 Load by default only manually tagged releases 2019-06-18 19:35:13 +02:00
68b28b652e Update release file 2019-06-18 19:02:31 +02:00
55728f3e2c Fix PHP 5 build 2019-06-18 18:52:17 +02:00
e6cb604b0a Substitute echo function in php 5 2019-06-18 18:35:32 +02:00
3102209ace Bugfix 2019-06-18 18:27:26 +02:00
6a6eacc722 Try different approach 2019-06-18 18:13:24 +02:00
dba734eaba Substitute AMPHP Coroutine with MadelineProto Coroutine 2019-06-18 17:52:04 +02:00
3096ee3162 Re-enable php-build 2019-06-18 17:39:31 +02:00
f9c0a92e98 Travis CI fixes 2019-06-18 17:34:25 +02:00
8d47981b22 Small fix to phpenv 2019-06-18 17:19:45 +02:00
622cd30dbb Build script fix 2019-06-18 15:40:59 +02:00
7b38cfda27 Build libzip manually 2019-06-18 15:30:14 +02:00
18139ea0d3 Install php-build 2019-06-18 15:08:11 +02:00
13fb3e61a9 Use php 7 with 7to5 2019-06-18 15:04:13 +02:00
e74ff18d9f Require external php 7 polyfill 2019-06-18 14:39:31 +02:00
4311ed872d Build php 5.6 and php 7.0 versions w/ polyfills 2019-06-18 14:31:38 +02:00
40e2e6c09d Various bugfixes 2019-06-18 12:31:44 +02:00
47f0285881 Small bugfix 2019-06-17 13:09:40 +02:00
8cd870366a Bugfixes and improvements to tests 2019-06-17 12:19:46 +02:00
9668727b80 Small fix 2019-06-16 22:15:31 +02:00
cef7e2348c Proper exit codes 2019-06-16 21:27:23 +02:00
31bbe44735 Allow travis tests 2019-06-16 21:25:03 +02:00
b65beb3ece Update phpseclib and add smore tests 2019-06-16 21:20:29 +02:00
f3c251ea33 Require fork of dns 2019-06-12 18:48:05 +02:00
6a6fcb782d Add shutdown API 2019-06-06 15:57:21 +02:00
08a502cb2f Add async readline 2019-06-05 15:38:32 +02:00
3ace2d035b Fix phar build 2019-06-04 15:24:15 +02:00
d18ef430b9 Fix phar build 2019-06-04 15:22:47 +02:00
a1daca04da
Style fixes 2019-06-04 14:55:58 +02:00
011c8a5c6e Fix phar build 2019-05-31 18:06:36 +02:00
c6b3aa96d0 Update copyrights 2019-05-31 12:18:10 +02:00
b339a9d849 Major fixes and refactoring of wrapper APIs 2019-05-22 17:35:16 +02:00
46c4e222db Fix phar build 2019-05-16 13:37:59 +02:00
cce0c3ed3e Update dependencies 2019-05-16 12:44:05 +02:00
453af1208b Fix calls 2019-05-15 22:08:49 +02:00
15499970a4 Update dependency 2019-05-13 17:59:10 +02:00
714ade6fbc Some fixes 2019-05-12 16:01:52 +02:00
Daniil Gentili
285bbca44c CombinedAPI and madeline.php improvements 2019-05-10 23:02:15 +00:00
Daniil Gentili
a8eb7622a8 Bypass composer cache 2019-05-10 22:19:21 +00:00
8dedb13b5e Clean up unused stuff 2019-05-10 14:07:15 +02:00
c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
4fa1e606a3 Comment out testing.php string 2018-12-28 18:12:26 +01:00
08313ece9c close_and_reopen bugfix 2018-12-28 17:21:04 +01:00
Daniil Gentili
0b7c8678b4 Convert multiple catches 2018-12-27 03:04:44 +00:00
Daniil Gentili
69a2131206 Support yield return polyfill 2018-12-27 02:47:21 +00:00
df24fa4611
Merge alpha into master (async, huge bugfixes and more) (#546)
* Implement async and lots of bugfixes

* Implement more async

* Implement async, implement bugfixes for the connection module, for the datacenter module, huge bugfixes, huge perfomance improvements, media DCs for https, advanced selecting, custom var_dump, totally rewritten IOLoop and response mechanism, promises, improvements to the TL parser, custom mb_substr

* Apply fixes from StyleCI

* Bugfixes

* Apply fixes from StyleCI

* Bugfixes, implement combined promises

* Apply fixes from StyleCI

* Support passing method arguments as callable

* Starting to write async upload logic

* Apply fixes from StyleCI

* Start implementing async file upload

* Apply fixes from StyleCI

* bugfix

* Apply fixes from StyleCI

* Start rewriting connection module

* Add PHP file docblocks for all classes

* Start working on new async stream API

* Finish writing stream API

* More stream API fixes

* Apply fixes from StyleCI

* Rewrite DataCenter and Connection modules

* Clean up stream API documentation

* Fixes

* Apply fixes from StyleCI

* Add referenced parameter to get length of buffer to read in getReadBuffer API

* Moved all MessageHandler code in the Connection module, added a PHP version warning in the phar

* Start fixing reads

* Fix all protocol stream wrappers

* Apply fixes from StyleCI

* Implement disconnection, and remove end function

* Working async RPC

* Implement async file upload

* Bugfix

* Method recall bugfixes

* Bugfixes

* Trait bugfixes

* Fix FIFO buffer

* Bugfixes and speedtests

* Async logging

* Implement websocket streams

* Implement loop API, signal API, clean closing and start changing layer

* Small magna, websocket and HTTP fixes

* Clean up loop API

* Improved stack traces, 2FA and async

* Login fixes

* Added instructions for manual verification

* Small fixes

* More app info improvements

* More app info improvements

* TL and 2FA fixes

* Update to layer 89

* More bugfixes

* Implement broken media reporting

* Remove debug comments

* PHP 7.2 backwards compatibility

* Bugfixes

* Async key generation

* Some simplifications

* Transport fixes

* Cleanup

* async API

* Performance fixes

* Fixes to async API

* Bugfixes

* Implement one-time async loop

* Authorization and logging fixes

* Update to layer 91

* 7to5 fix

* Null coalesce conversion

* Implement socks5 proxy

* Implement HTTP proxy

* Fixes to HTTP proxy

* MTProxy and socks5 fixes

* Disable PHP 5 conversion

* Proxies have higher priority

* Avoid error handling in vendor

* Override composer dependencies

* Fix travis build

* Final composer fixes

* Proxy logic fixes

* Fix get_updates update handling

* Do not use parallel file driver if not supported

* Refactor loader and implement HTTP fixes

* Suppress errors in loader

* HTTP and authorization fixes

* HTTP fixes

* Improved peer management

* Use HTTP protocol on altervista

* Small bugfixes

* Minor fixes

* Docufix

* Docufix

* Legacy fixes

* Fix message queue

* Avoid updating if using MTProxy

* Improve logs and examples

* Trim final newlines while converting parse mode

* Reimplement noResponse flag

* Async combined event handler and APIFactory fixes

* Actually return config

* Case-insensitive methods

* Bugfix

* Apply fixes from StyleCI (#545)

* MTProxy fixes

* PHP 5 warning

* Improved PHP 5 warning

* Use <br> along with newlines in web logs

* Update docs
2018-12-26 20:51:14 +01:00
837c541ea7 Apply fixes from StyleCI 2018-08-28 18:58:20 +00:00
41c682a12d Fix recursive alphabetical search and implement nothing in the socket fix 2018-08-28 20:55:49 +02:00
Daniil Gentili
6947d1b034 Use media DCs for file operations 2018-06-29 18:08:33 +00:00
33d95dab58 Apply fixes from StyleCI 2018-06-29 16:16:12 +00:00
855045099e Update to layer 82, implement media DC key exchange, revert logger API change, fix pretty TL traces, implement message splitting for parse_mode messages, fix TOS flow 2018-06-29 18:15:17 +02:00
c07ab02c66 Merge branch 'master' of https://github.com/danog/MadelineProto 2018-06-29 14:00:21 +02:00
87a989d0cf TOS update, update to layer 81, improve GUI/cli interface 2018-06-29 13:50:14 +02:00
092cc44d75 HHVM fixes 2018-06-22 13:28:33 +02:00
Daniil Gentili
7b9190b5e5 Self-update mtproxyd 2018-05-10 09:38:51 +00:00
Daniil Gentili
2cb4e80620 Improve examples 2018-03-29 11:53:27 +00:00
Daniil Gentili
86d146c977 Apply fixes from StyleCI 2018-03-23 15:39:58 +00:00
7a0153a139
Documentation rework (#349)
* Documentation rework

* Apply fixes from StyleCI

* Documentation fixes

* Login as bot through web/cli API, allow using invite links in joinChannel, full invite links in importChatInvite and checkChatInvite, non-invite links in importChatInvite

* Apply fixes from StyleCI

* Logging fixes

* Build docs

* Add methods to modify start template, bugfix to logging and keyboard conversion

* Add TL documentator

* Document MTProto methods

* Documenting methods...

* 7% documented

* Bugfixes

* Update docs

* Update docs

* Simplify file management

* Implement automatic object conversion for media, and more awesome stuff

* Implement automatic object conversion for media, and more awesome stuff

* Implement event update handler and file upload/download callback

* Auto-detect mime type, duration, width and height of media

* Update docs

* Document new file functions

* Fix links

* Fix links

* Update bot.php to use event loop

* Implement webhook update handler and forking in main loop

* Build docs

* Better docs

* Fixes to secret chats

* Almost finished updating docs

* Bugfixes, implemented infinite loop for loop() method, almost finished docs

* Finish writing docs

* Add automatic documentation builder script

* Finished writing docs
2018-03-20 12:48:05 +01:00
Daniil Gentili
c6a0a04731 Apply fixes from StyleCI 2018-03-16 14:10:29 +00:00
marcosramirezaranda
d45d2d887e add HTTP Proxy Support (#335)
* Add support for HTTP Proxy

* fix small typo

* forgot git add ...

* reverts to use numeric protocol in HTTPProxy::__construct
2018-03-16 15:10:22 +01:00
Daniil Gentili
0918be3060 Apply fixes from StyleCI 2018-03-12 21:11:18 +00:00
Daniil Gentili
071be3bb80 Reorganizing documentation, rewrote peer management 2018-03-12 21:10:49 +00:00
e9dc0ba6f6 Implement socket interface 2018-03-04 17:42:48 +01:00
Daniil Gentili
e3e5f730fd Do not change release file for secondary branches 2018-03-02 00:53:20 +00:00
Daniil Gentili
e577e5ec35 Improve travis CI build script 2018-03-02 00:45:07 +00:00
Daniil Gentili
85ec1c6830 Improved logging 2018-03-02 00:38:10 +00:00
Daniil Gentili
eee724cf83 Create different phars for development branches 2018-03-01 23:50:55 +00:00
16e0fb4a57 Improve phar self-update mechanism 2018-03-01 13:28:16 +01:00
Daniil Gentili
bbe24e70d9 Use http_wait instead of ping to wakeup closed sockets, add debugging phar creation script 2018-02-26 02:30:22 +00:00
Daniil Gentili
983912f188 Avoided memory leak, Button now implements ArrayAccess, improved documentation 2018-02-25 09:52:55 +00:00
Daniil Gentili
410af60201 Release phar on every commit 2018-02-24 16:55:31 +00:00
4d7eab05c4 Fix typo 2018-02-23 20:36:23 +01:00
899d9eb201 Use bash in phar script (release_phar) 2018-02-23 20:30:56 +01:00
Daniil Gentili
2b921eea56 Fixes for micro http-client (phar_release) 2018-02-22 14:26:57 +00:00
f9626173a3
Fix travis ci build script 2018-02-21 13:05:35 +01:00
925fa88de1
Add automated phar downloader 2018-02-21 12:55:42 +01:00
Daniil Gentili
ec4fc804bb Update documentation, update travis ci build script 2018-02-20 20:47:25 +00:00
Daniil Gentili
f3dbc898b7 Update phpseclib, fix composer.json, PHP 5 fixes, update travis CI script. 2018-02-20 14:49:54 +00:00
Daniil Gentili
322f7dd831 Fixes to phar scripts 2018-02-20 12:33:29 +00:00
Daniil Gentili
ba7e67caf4 Fix travis ci build script 2018-02-20 12:17:04 +00:00