Commit Graph

74 Commits

Author SHA1 Message Date
17ed5c0991
Add IPC support to buttons, start writing PHPDOC documentor 2020-10-07 19:31:52 +02:00
ca2cbe4ecb
Add missing return typehints 2020-10-01 21:03:25 +02:00
1e690d1a8f
Avoid certain issues 2020-07-09 20:53:01 +02:00
23e3c5b12c
Apply misc fixes 2020-04-05 14:57:33 +02:00
Sean
dfe9edb132
Update copyrights (#767) 2020-02-17 14:13:46 +01:00
4b1cf229e5
Adding getUrl command in the downloadbot 2020-02-09 17:29:39 +01:00
47228712a6
Improve tests 2020-02-09 16:24:57 +01:00
f8ea85a551
Performance improvements 2020-02-07 21:13:49 +01:00
000839a1b5
Yield from all the things 2020-01-31 19:29:43 +01:00
b842c8f7e5
Minor fix 2020-01-31 18:07:31 +01:00
103c774236
Improve tests and conversion 2019-12-26 19:17:31 +01:00
d8dc41e6c3
Change link 2019-10-31 15:07:35 +01:00
40496d374e
More style improvements 2019-10-29 22:06:51 +01:00
7a9da5718e
Make everything CamelCase 2019-10-29 21:33:23 +01:00
d7c7445207 Proper exit code 2019-09-03 18:29:50 +02:00
662c947953 Properly shutdown in case of exception 2019-09-03 18:21:43 +02:00
e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
9d86507eb8 Better exceptions 2019-06-26 17:16:06 +02:00
caccecd999 Remove rollbar dependency 2019-06-12 18:32:15 +02:00
73dc3fbcfd Better shutdown and signal logging 2019-06-08 21:01:57 +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
Daniil Gentili
87fdbda399 Ignore headers already sent errors 2018-12-27 23:17:47 +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
b4e6d022ed Better logging 2018-05-10 09:26:30 +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
85ec1c6830 Improved logging 2018-03-02 00:38:10 +00:00
Daniil Gentili
d3cff5e0af Apply fixes from StyleCI 2018-02-24 16:54:39 +00:00
Daniil Gentili
5519782618 Repeat RPC query on internal server errors, improve retry management, improve http client 2018-02-24 16:54:13 +00:00
Daniil Gentili
8a93db8f30 Update copyrights, and add phar creation script 2018-02-20 11:13:43 +00:00
Daniil Gentili
34867f9d20 Cleanup logger 2018-02-18 15:17:36 +00:00
Daniil Gentili
6d26bf2a95 Return the MadelineProto version along with exception traces 2018-02-18 14:20:33 +00:00
Daniil Gentili
5c420dd827 Apply fixes from StyleCI 2017-12-12 10:59:49 +00:00
18ee579b63
Disable rollbar 2017-12-12 11:59:18 +01:00
Daniil Gentili
d536ddb5fd Apply fixes from StyleCI 2017-11-08 10:42:06 +00:00
Daniil Gentili
860ebcce8b Readable errors 2017-09-24 22:24:04 +00:00
Daniil Gentili
f16aa7c63a Apply fixes from StyleCI 2017-08-13 16:52:32 +00:00
Daniil Gentili
420e71bfbc Don't log useless shiz 2017-08-06 15:03:50 +02:00
Daniil Gentili
89137fe82e Do not report helpful errors 2017-07-26 19:28:25 +02:00
Daniil Gentili
d79ffc1349 Fixes to dialog fetching, participant list fetching, exceptions, documentation, and lotsa other stuff 2017-07-26 18:38:10 +02:00
Daniil Gentili
8aaedac7a7 Apply fixes from StyleCI 2017-07-26 06:31:15 +00:00
Daniil Gentili
849ee4aa73 Added custom TL exception trace, reduced memory usage, fixed fetching of dialog list 2017-07-26 08:30:48 +02:00
Daniil Gentili
54f69ece92 Bugfixes 2017-07-24 01:32:29 +02:00
Daniil Gentili
86c07f705d Performance fixes, bugfixes 2017-05-27 22:21:14 +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
3d241f64b0 Less logging 2017-05-10 11:40:41 +01:00
Daniil Gentili
6b61be2923 Even less logging 2017-05-04 19:44:12 +02:00
Daniil Gentili
4a7d6f2895 Less logging 2017-05-04 16:11:02 +02:00
Daniil Gentili
b67d876dee Improve logging 2017-04-30 12:57:40 +02:00
Daniil Gentili
c031d8bc44 Apply fixes from StyleCI 2017-04-27 10:03:11 +00:00