Commit Graph

107 Commits

Author SHA1 Message Date
ac47a23639
PHP 8 fixes 2020-10-08 21:35:32 +02:00
6ce4de6091
Properly update database settings when deserializing; also enable optional database backend for event handler variables 2020-10-07 16:48:34 +02:00
d49f59eec5
Various psalm fixes 2020-10-04 14:55:05 +02:00
4f69701cfc
Update even more typehints 2020-10-03 15:04:35 +02:00
76ca2b19ab
Manual psalm fixes 2020-10-02 16:13:19 +02:00
d792263e86
Fixes 2020-09-28 23:20:12 +02:00
a6b4c0f5cf Further improvements 2020-09-27 23:50:27 +02:00
5560b140f5 Multiple bugfixes 2020-09-27 22:15:16 +02:00
86fc8b6e6e Localize login 2020-09-27 22:15:16 +02:00
d558d17d1f Implement downloadTo* and uploadFrom* via IPC 2020-09-27 22:15:16 +02:00
50ee77c229 Store main session in database 2020-09-27 22:15:16 +02:00
164000b591 Final IPC improvements 2020-09-27 22:15:16 +02:00
bc13e61526 Final fixes 2020-09-27 22:15:16 +02:00
a3a331542b IPC improvements 2020-09-27 22:15:16 +02:00
1c99fd2658 Implement FastAPI in API 2020-09-27 22:15:16 +02:00
89da6d5a45 Serialization and database improvements 2020-09-27 22:15:16 +02:00
45067af046
Final fixes 2020-07-12 01:12:20 +02:00
c8cdf328c0
Implement IPC 2020-07-11 20:01:54 +02:00
7d29bd84bc
Fixes 2020-07-10 14:50:00 +02:00
488a42e6c5
Use global session lock 2020-07-09 21:42:06 +02:00
77a955c25e
More psalm fixes 2020-04-05 22:22:47 +02:00
23e3c5b12c
Apply misc fixes 2020-04-05 14:57:33 +02:00
ec2719db4e
Small cleanups 2020-03-07 21:45:50 +01:00
b5267beaa2
Refactor and clean up serialization and APIFactory APIs, automatically unreference instance on destruction to clean up memory 2020-02-25 18:02:32 +01:00
Sean
dfe9edb132
Update copyrights (#767) 2020-02-17 14:13:46 +01:00
000839a1b5
Yield from all the things 2020-01-31 19:29:43 +01:00
d8dc41e6c3
Change link 2019-10-31 15:07:35 +01:00
53bf8176f5 Stuffs 2019-07-01 13:14:56 +02:00
a1daca04da
Style fixes 2019-06-04 14:55:58 +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
da561de1a9 Improve composer.json and serialization 2019-05-13 17:48:53 +02:00
66f84f4b05 Automatic asyncify (1st pass) 2019-05-11 17:01:36 +02:00
4c52776de9 Fix serialization during async construction 2019-05-03 20:30:30 +02: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
d4ca6c7fa0 bugfix 2018-04-18 19:48:57 +00:00
e600aa0c43 Bugfixes to server, logging and serialization 2018-04-17 10:39:55 +02:00
353f8b6281 Hugely speed up startup 2018-03-24 19:06:01 +01:00
Daniil Gentili
86d146c977 Apply fixes from StyleCI 2018-03-23 15:39:58 +00:00
Daniil Gentili
beee4159b6 Implemented web UI for my.telegram.org and bugfix 2018-03-22 19:50:57 +00:00
Daniil Gentili
c8a19d9f89 Speed up deserialization 2018-03-21 13:12:31 +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
rik43
5a6e60eada windows paths compatibility (#332) 2018-03-11 15:30:25 +01:00
Daniil Gentili
ef0059bf08 Do not serialize if API is null 2018-03-04 12:16:35 +00:00
e2aef54979 Multithreading & settings can now be replaced directly on deserialization. 2018-03-02 13:32:48 +01:00
Daniil Gentili
85ec1c6830 Improved logging 2018-03-02 00:38:10 +00:00
Daniil Gentili
d5fe532e22 Handle bad_msg_notifications in response to containers 2018-02-25 19:51:20 +00:00
Daniil Gentili
782e145072 Apply fixes from StyleCI 2018-02-25 16:50:03 +00:00
Daniil Gentili
633aee1019 Allow deserialization from relative paths in phar 2018-02-25 16:49:40 +00:00
Daniil Gentili
983912f188 Avoided memory leak, Button now implements ArrayAccess, improved documentation 2018-02-25 09:52:55 +00:00