1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-02 12:37:47 +01:00
Commit Graph

190 Commits

Author SHA1 Message Date
5d88935734 Avoid using custom danog/dns for now 2020-12-15 18:36:04 +01:00
ad8ff52e5f
Update mysql 2020-11-13 19:01:01 +01:00
bda520122d
Some templates 2020-10-18 15:02:37 +02:00
a376f0bf82
Logger and connection improvements 2020-10-17 12:49:26 +02:00
f4cb2d83a1
Finalize documentation 2020-10-15 19:07:37 +02:00
def6199437
PHPDOC 2020-10-13 10:03:35 +02:00
17ed5c0991
Add IPC support to buttons, start writing PHPDOC documentor 2020-10-07 19:31:52 +02:00
d31b798df9
Final fixes, and update to latest version of websocket lib 2020-10-04 16:27:22 +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
0001a45cd2 Completely refactor settings, remove old (internal and external) APIs, generic code cleanup 2020-09-27 22:15:16 +02:00
5a5c02e56b
Improve caching mechanism, deduplicate SQL code 2020-09-12 17:12:23 +02:00
01f9e67732
Fix requirements 2020-08-09 14:44:41 +02:00
b103ac3087
Merge branch 'master' of github.com:danog/MadelineProto into master 2020-07-31 20:40:10 +02:00
8eac5cc0ac
Proper exception handling in wsstream 2020-07-31 20:40:04 +02:00
Daniil
226cb3bbd8
Postgres support for sessions (#846) 2020-07-30 19:51:16 +02:00
444d55355a
Switch to external loop 2020-07-28 20:39:32 +02:00
86f6887148
IPC improvements 2020-07-12 14:55:21 +02:00
4923eec9cd
2GB file limit, async RPC reporting, file reference and MTProto fixes 2020-07-09 18:23:16 +02:00
bfd08f5744
Fix shutdown loop, automatically inflate stripped photoSizes, improve composer reporter 2020-06-23 20:30:40 +02:00
69f33dce34
Layer 113 2020-06-16 17:52:55 +02:00
0e9f107754
Merge branch 'master' of github.com:danog/MadelineProto 2020-06-15 20:08:06 +02:00
e147fe3695
Clean up 2020-06-15 20:06:48 +02:00
Alexander Pankratov
0c59e6ef42 Load submodules 2020-05-23 15:10:47 +03:00
Alexander Pankratov
ed493330a6 Database properties types 2020-05-23 15:10:47 +03:00
8b80396ddb
Further psalm fixes 2020-04-05 15:33:01 +02:00
93bd9073e1
Bugfix 2020-03-14 17:29:49 +01:00
ec2719db4e
Small cleanups 2020-03-07 21:45:50 +01:00
a545e3463e
Possibly fix upgrade issue 2020-03-06 14:30:00 +01:00
98e56ba62f
ipv6 fixes 2020-02-28 14:14:02 +01:00
47228712a6
Improve tests 2020-02-09 16:24:57 +01:00
3b21304d8b
Implement downloadToBrowser and downloadToResponse methods 2020-02-08 19:32:36 +01:00
f8ea85a551
Performance improvements 2020-02-07 21:13:49 +01:00
e96f3ab593
Add tests, + various bugfixes 2020-02-04 21:46:38 +01:00
e4ba475970
Fix bot API file IDs 2020-02-04 17:34:02 +01:00
1d8f0090ed
Update deps 2020-01-19 13:56:54 +01:00
9b7ae03d8f
Cleanup external API 2020-01-19 13:46:49 +01:00
32f7b9a69d
Revert http-client dep 2020-01-05 18:43:47 +01:00
ea197a115f Bugfixes in response management 2020-01-05 17:29:36 +00:00
b947b5cacc
Insert php version in release file 2019-12-27 15:50:00 +01:00
6a67dda109
Update dns resolver 2019-12-27 14:47:20 +01:00
d2be65d4ad
Wait for packagist, first 2019-12-26 20:26:27 +01:00
b9f3acfaa6
Modular conversion 2019-12-26 19:47:24 +01:00
103c774236
Improve tests and conversion 2019-12-26 19:17:31 +01:00
05ee3c8b15
Multiple improvements for secret chat files, event handler, exception traces, update handling, file download 2019-12-26 15:14:27 +01:00
e3ed3f1685
Update composer deps 2019-12-22 19:10:30 +01:00
a2fdaad429
Update deps 2019-12-22 12:34:48 +01:00
b8067c7e95
Switch to custom fork of phpseclib, change namespace 2019-12-18 14:21:27 +01:00
58918b6fad
ECDH improvements 2019-12-15 13:21:57 +01:00
820057c9f4
packagist hotfix 2019-12-14 12:15:40 +01:00
7b2b69e97d
Better escaping 2019-12-13 21:31:35 +01:00
a7b0a16a01
Update websocket logic 2019-12-13 15:37:57 +01:00
170eb6cf10
Refactor, update amphp libs 2019-12-13 12:57:47 +01:00
0cb8d7f27e
Misc bugfixes 2019-12-11 16:18:31 +01:00
612ec4cbe7
save 2019-10-31 15:06:25 +01:00
a3653ecd91
Use psr-4 2019-10-29 20:53:51 +01:00
445c647438 New phpdoc 2019-09-18 20:46:20 +02:00
e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
ec714ce011 Load old websocket 2019-08-25 20:55:54 +02:00
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