Commit Graph

117 Commits

Author SHA1 Message Date
Daniil Gentili 444d55355a
Switch to external loop 2020-07-28 20:39:32 +02:00
Daniil Gentili 832aff00da
Properly set call layer 2020-03-28 17:10:35 +01:00
Daniil Gentili 0a467beb53
Misc bugfixes 2020-03-08 17:24:31 +01:00
Daniil Gentili 80f162a116 Bugfix 2020-03-03 00:08:39 +01:00
Daniil Gentili 55d4de2df9
Update for latest php-libtgvoip 2020-03-01 16:31:56 +01:00
Sean dfe9edb132
Update copyrights (#767) 2020-02-17 14:13:46 +01:00
Daniil Gentili 43952841a9
Greatly reduce coroutine overhead 2020-02-05 17:37:01 +01:00
Daniil Gentili 80aebfa359
Fully make use of yield from and async-friendly stack traces 2020-01-31 20:34:21 +01:00
Daniil Gentili 7ea0d9da91
Yield from even more things 2020-01-31 19:49:58 +01:00
Daniil Gentili 000839a1b5
Yield from all the things 2020-01-31 19:29:43 +01:00
Gabriele 91590ff360 fix required type for PhoneCallDiscardReason (#756)
* fix type for PhoneCallDiscardReason

* change PhoneCallDiscardReason parameters type to array
2020-01-22 13:31:03 +01:00
Daniil Gentili 2850c5acfa
Strictly typed API 2019-12-28 17:11:08 +01:00
Daniil Gentili 894470a147
Refactor public API: full encapsulation and strict typing 2019-12-28 16:07:09 +01:00
Daniil Gentili b8067c7e95
Switch to custom fork of phpseclib, change namespace 2019-12-18 14:21:27 +01:00
Daniil Gentili c8ed5971d9
Update phpseclib 2019-12-13 13:38:56 +01:00
Daniil Gentili d8dc41e6c3
Change link 2019-10-31 15:07:35 +01:00
Daniil Gentili 9099aa4f0b
Full static 2019-10-29 23:02:47 +01:00
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 f63065f1f3 Magnaluna bugfix 2019-09-02 17:44:13 +02:00
Daniil Gentili cfaa6241c2 Bugfix for magnaluna 2019-09-02 15:42:19 +00:00
Daniil Gentili e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
Daniil Gentili d2010cc259 Merge 2019-08-29 18:34:33 +02:00
Daniil Gentili 1067d24e7c Call bugfix 2019-07-21 14:50:48 +00:00
Daniil Gentili c614acd43c Small merge fixes 2019-07-18 21:59:02 +00:00
Daniil Gentili a951ae380f
Async magnaluna and more async bugfixes (#667) 2019-07-18 23:48:35 +02:00
Daniil Gentili 005d762a8f Cast to string to avoid issues with Bytes objects 2019-07-16 15:18:37 +02:00
Daniil Gentili 9d86507eb8 Better exceptions 2019-06-26 17:16:06 +02:00
Daniil Gentili 6f5d1b16fa Fix upload by URL 2019-06-25 15:11:37 +00:00
Daniil Gentili 506d1b1fd4 Phone call bugfix (subrelease) 2019-06-24 10:47:44 +00:00
Daniil Gentili a1daca04da
Style fixes 2019-06-04 14:55:58 +02:00
Daniil Gentili c6b3aa96d0 Update copyrights 2019-05-31 12:18:10 +02:00
Daniil Gentili c86e9d31fb Continue rewriting update management 2019-05-29 17:19:42 +02:00
Daniil Gentili 50b85629ab Whoops 2019-05-15 22:10:53 +02:00
Daniil Gentili 453af1208b Fix calls 2019-05-15 22:08:49 +02:00
Daniil Gentili 34e957e811 Fixing auto-asyncify 2019-05-13 01:14:45 +02:00
Daniil Gentili bea156f064 Asyncify (4th pass) 2019-05-11 17:17:16 +02:00
Daniil Gentili cacc792619 Asyncify (2nd pass) 2019-05-11 17:12:17 +02:00
Daniil Gentili 66f84f4b05 Automatic asyncify (1st pass) 2019-05-11 17:01:36 +02:00
Daniil Gentili c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
Daniil Gentili 7005cdf10a Multiple async and VoIP improvements 2019-03-29 20:25:42 +01:00
Daniil Gentili e5798a41db Bugfixes 2019-03-28 18:01:20 +00: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 513a5933fe Cleanup 2018-04-17 11:17:44 +02:00
Daniil Gentili c97aced309 Use non-static logger 2018-04-08 17:53:30 +00:00
Daniil Gentili cf974a2d0a Implement select in DataCenter class, continue writing VoIP implementatino 2018-03-29 13:25:15 +02:00
Daniil Gentili 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