Commit Graph

149 Commits

Author SHA1 Message Date
Daniil Gentili 92717a2d05
MUUUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BUUURN SNAKES BUUURN MUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA cough 2019-10-29 22:41:31 +01:00
Daniil Gentili 7a9da5718e
Make everything CamelCase 2019-10-29 21:33:23 +01:00
Daniil Gentili e81ecc87c9
Start cleaning up repo 2019-10-28 19:48:59 +01:00
Daniil Gentili 579dfe3563
Do not remove subconnection from DataCenterConnection if reconnecting 2019-10-28 18:49:10 +01:00
Daniil Gentili e9e66f3835
Fix connection to proxies 2019-10-28 17:08:04 +01:00
Daniil Gentili 8147d5fca5 Huge bugfixes, avoid problems with unbound keys and add more config loops 2019-09-17 21:35:53 +02:00
Daniil Gentili f6573be332 Avoid problems with HTTP 2019-09-15 18:19:51 +02:00
Daniil Gentili 310b489dfb Avoid issues with bad connections 2019-09-13 18:03:18 +02:00
Daniil Gentili d681df8aff Better logging 2019-09-13 17:34:39 +02:00
Daniil Gentili b6a517ede5 Fix 2019-09-13 16:55:48 +02:00
Daniil Gentili 4619d44b12 Clean up 2019-09-04 17:48:07 +02:00
Daniil Gentili 1ba3258581 Allow ctrl-c at any time 2019-09-03 19:03:39 +02:00
Daniil Gentili e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
Daniil Gentili 72d353fff0 Parallelized uploads and downloads, upload by URL and rename files 2019-09-02 16:54:36 +02:00
Daniil Gentili d1bbc86d21 Bugfixes 2019-09-02 15:30:29 +02:00
Daniil Gentili 0f7ffc2da7 Save 2019-09-02 14:37:30 +02:00
Daniil Gentili ea2b28dbb1 Refactor auth key management 2019-09-01 23:39:29 +02:00
Daniil Gentili 3107aee776 PHPDOC 2019-09-01 14:07:04 +02:00
Daniil Gentili 40c0976c5a Almost finished refactoring 2019-09-01 01:52:28 +02:00
Daniil Gentili a1d139d526 Refactor 2019-08-31 23:07:20 +02:00
Daniil Gentili 3fe86e0162 Refactoring 2019-08-31 22:43:58 +02:00
Daniil Gentili d2010cc259 Merge 2019-08-29 18:34:33 +02:00
Daniil Gentili eabce85f6e Small bugfix 2019-08-02 13:09:43 +02:00
Daniil Gentili a951ae380f
Async magnaluna and more async bugfixes (#667) 2019-07-18 23:48:35 +02:00
Daniil Gentili 92e8b58bd9 Merge 2019-07-06 17:48:34 +02:00
Daniil Gentili 53bf8176f5 Stuffs 2019-07-01 13:14:56 +02:00
Daniil Gentili 5cfaee670c Merge 2019-06-29 14:54:12 +02:00
Daniil Gentili 2b1f44a31f Implement download_to_callback 2019-06-24 14:42:14 +02:00
Daniil Gentili 883811ef00 Bugfix 2019-06-14 11:29:28 +02:00
Daniil Gentili c09488aa12 Minor fixes 2019-06-13 19:46:58 +02:00
Daniil Gentili a1daca04da
Style fixes 2019-06-04 14:55:58 +02:00
Daniil Gentili 6a6066b8ad Improved logging and disconnect 2019-06-04 13:49:01 +02:00
Daniil Gentili c6b3aa96d0 Update copyrights 2019-05-31 12:18:10 +02:00
Daniil Gentili 7f47e3de85 Rewriting update management 2019-05-29 15:17:14 +02:00
Daniil Gentili b339a9d849 Major fixes and refactoring of wrapper APIs 2019-05-22 17:35:16 +02:00
Daniil Gentili f155738b56 Update dependencies 2019-05-14 21:07:25 +02:00
Daniil Gentili 6e390a92bb Improvements 2019-05-12 21:23:25 +02:00
Daniil Gentili 714ade6fbc Some fixes 2019-05-12 16:01:52 +02:00
Daniil Gentili a890789a5d Implement async HTTP request module, fix TLS handshakes in proxies, general proxy improvements and cleanups 2019-05-10 20:01:39 +02:00
Daniil Gentili c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
Daniil Gentili 79f7d92767 Async file upload with sendMedia & callback fixes 2018-12-27 18:17:18 +01:00
Daniil Gentili 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
Daniil Gentili e13d28ecda More bugfixes 2018-05-08 11:08:34 +00:00
Daniil Gentili e0ceb0f39c HTTP fixes 2018-04-18 16:19:58 +02:00
Daniil Gentili 6c84ada369 Apply fixes from StyleCI 2018-04-18 14:12:32 +00:00
Daniil Gentili 1e3ec54ce8 Add socks5 and HTTP proxy, implement authorization in socks5 proxy, implement authorization in http proxy, simplify socket and connection classes 2018-04-18 16:11:59 +02:00
Daniil Gentili b8eea05f64 Small bugfix 2018-04-01 20:40:24 +02:00
Daniil Gentili 588aea5c8e Stability fixes 2018-04-01 19:23:20 +02:00
Daniil Gentili a5246e782d Apply fixes from StyleCI 2018-03-29 11:25:42 +00:00
Daniil Gentili cf974a2d0a Implement select in DataCenter class, continue writing VoIP implementatino 2018-03-29 13:25:15 +02:00