Commit Graph

81 Commits

Author SHA1 Message Date
949bd194ed HTML escaping bugfixes 2019-06-24 16:28:54 +02:00
03c3419240 Load the latest phpseclib fork 2019-06-21 17:11:47 +02:00
0a33f69e8b Improve logging and settings logic 2019-06-20 20:21:31 +02:00
40e2e6c09d Various bugfixes 2019-06-18 12:31:44 +02:00
b65beb3ece Update phpseclib and add smore tests 2019-06-16 21:20:29 +02:00
2d70f51b2c Multiple fixes 2019-06-13 14:43:30 +02:00
3fe04930e7 Better error handling and proxied DNS over HTTPS 2019-06-12 20:51:38 +02:00
caccecd999 Remove rollbar dependency 2019-06-12 18:32:15 +02:00
8b03c63a9e Use DNS over HTTPS by default in all clients 2019-06-12 18:26:55 +02:00
24b92b9a71 Fix 2019-06-07 17:21:43 +02:00
832df205c4 Finally stabilize dependencies 2019-06-04 14:25:13 +02:00
84abb90c2a Added layerdiff script 2019-05-31 13:17:29 +02:00
b339a9d849 Major fixes and refactoring of wrapper APIs 2019-05-22 17:35:16 +02:00
cce0c3ed3e Update dependencies 2019-05-16 12:44:05 +02:00
f155738b56 Update dependencies 2019-05-14 21:07:25 +02:00
15499970a4 Update dependency 2019-05-13 17:59:10 +02:00
da561de1a9 Improve composer.json and serialization 2019-05-13 17:48:53 +02:00
a890789a5d Implement async HTTP request module, fix TLS handshakes in proxies, general proxy improvements and cleanups 2019-05-10 20:01:39 +02:00
c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
Daniil Gentili
e5798a41db Bugfixes 2019-03-28 18:01:20 +00:00
d489c90268 fix deps 2019-02-06 20:23:38 +01: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
Daniil Gentili
95cf5b085a
Update composer.json 2018-05-14 20:23:01 +02:00
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
d088f5e009 Update requirements 2018-04-09 22:12:34 +00:00
Daniil Gentili
8ee71afccb Support altervista.org out of the box 2018-03-21 20:29:20 +00:00
c6ae9a9255 Update PrimeModule dependency and finish writing socket interface 2018-03-21 11:59:56 +01: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
12a1da2015 Implement custom mb_strlen function 2018-03-03 17:55:45 +01: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
38e5b6151a Use the socket extension when possible 2018-02-20 11:24:58 +00:00
Daniil Gentili
8a93db8f30 Update copyrights, and add phar creation script 2018-02-20 11:13:43 +00:00
Daniil Gentili
f2e13cdac1 Fix composer.json syntax 2018-02-18 13:33:17 +00:00
e4a326e552
Http refactor (#307)
* refactor

* Apply fixes from StyleCI

* Implement https and http transport, add support for new req_pq_multi, send pending acks and objects in containers along with the next method call, remove dependency on the socket extension.

* Apply fixes from StyleCI

* Make types with empty constructors optional, fix phar archives (fixes #217)

* Apply fixes from StyleCI

* Update to layer 75

* Update github pages gemfile.lock
2018-02-18 14:18:18 +01:00
18ee579b63
Disable rollbar 2017-12-12 11:59:18 +01:00
Daniil Gentili
ea494c3639 phpseclib bugfix (closes #204) 2017-10-06 15:38:40 +03:00
Daniil Gentili
db992039ef Update phpseclib 2017-10-05 21:27:20 +00:00
Daniil Gentili
5de64b4f61 Update phpseclib, add support for socket streams, fix localization and other bugfixes 2017-10-05 18:53:56 +03:00
danogentili
c791f2bf31 Fixed composer 2017-08-23 15:24:25 +03:00
Savely Krasovsky
64f0562a49 Fix for rollbar-js problem (#160) 2017-07-29 12:13:32 +02:00
Daniil Gentili
4fcf3b0978 Update composer.json 2017-07-24 12:55:17 +02:00
Daniil Gentili
1858b7f8c8 Fixes for windows, added requirements+++ 2017-05-29 18:57:58 +01:00
Daniil Gentili
814c030296 Composer fixes 2017-05-27 22:24:15 +01:00
Daniil Gentili
86c07f705d Performance fixes, bugfixes 2017-05-27 22:21:14 +01:00
Daniil Gentili
ab1bd5330d Add polyfill 2017-05-16 21:19:42 +01:00
Daniil Gentili
915a0cd180 Clickable buttons, thread safety (#119)
* I'll just leave this here

* Threading fixes

* Apply fixes from StyleCI

* Composer fixes

* Lots of threading fixes, included all RSA keys

* Apply fixes from StyleCI

* Updated phpseclib

* fixes

* Apply fixes from StyleCI

* final fixes

* git add -A

* Apply fixes from StyleCI

* bugfix

* Fixes

* Apply fixes from StyleCI

* Small fixes

* Final fixes

* Speed improvements

* speed fixes

* Apply fixes from StyleCI

* This is faster than sanic

* Apply fixes from StyleCI

* Final speed fixes

* Apply fixes from StyleCI

* Less logging

* Speed+++

* Apply fixes from StyleCI

* More fixes

* Bug74586Exception

* Apply fixes from StyleCI

* Fixes

* Lemme fix that dumb-ass bug that broke everything

* Apply fixes from StyleCI

* Updated rollbar token

* Fixes for other tcp_* protocols

* Apply fixes from StyleCI

* No need for phpstruct anymore

* Add a conflict (OH NOES pony warfare)

* Less logs, beginning of clickable buttons

* Apply fixes from StyleCI

* Bugfixes, fixed clickable buttons

* Apply fixes from StyleCI

* Better errors

* Apply fixes from StyleCI

* You can now click text buttons

* Apply fixes from StyleCI
2017-05-16 15:12:04 +02:00
Daniil Gentili
74acdc8810 Bugfixes 2017-05-03 10:03:51 +00:00
Daniil Gentili
e1865b8b53 More fixes 2017-05-03 09:36:55 +02:00
Birger Jarl
4bafa94644 Fixed the phpseclib requirements (#103) 2017-05-03 09:35:09 +02:00