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

223 Commits

Author SHA1 Message Date
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
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
Daniil Gentili
d5b589877a bugfix 2017-04-21 21:24:07 +02:00
Daniil Gentili
1cda4e6e3c bugfix 2017-03-25 01:07:00 +01:00
Daniil Gentili
dfd8bf93da HUGE bugfixes and code reorganization, implemented secret chats and a lua wrapper 2017-03-11 19:54:51 +01:00
danogentili
3154b97763 Bugfixes 2017-02-21 21:04:37 +03:00
Daniil Gentili
2a04787c98 Switched to native html parser 2017-02-16 20:04:57 +01:00
Daniil Gentili
12e8f1c050 Bugfixes to html parsing 2017-02-13 15:14:37 +01:00
Daniil Gentili
85b1345ad9 Switch to vcs for danog/phpseclib 2017-02-13 04:50:35 +01:00
Daniil Gentili
030c03d4b5 Use my fork of html parser 2017-02-13 04:45:12 +01:00
Daniil Gentili
c86e35645e Implemented markdown and html parsing 2017-02-13 04:33:06 +01:00
danogentili
abca755bac Bugfixes 2017-02-11 16:59:38 +03:00
Daniil Gentili
81c1bcd208 HUGE performance improvements (run composer update), started to work on threading 2017-02-11 15:16:57 +01:00
Daniil Gentili
8e9d31f06f Bugfix for php < 7 (yes I know I should make fewer commits but this is kinda urgent) 2017-02-04 00:26:19 +01:00
Daniil Gentili
7a5055c670 We cannot support php < 5.6, sorry 2017-01-28 00:39:07 +01:00
danogentili
c18bdd2793 Fixed tests, adding support for PHP 5.4 2017-01-27 15:19:16 +03:00
Vitor Mattos
36118ee452 Doc (#47)
* Implemented automatic PHPDoc generate

* fix syntax

* fix syntax

* bugfix doc

* bugfix syntax

* bufgix syntax

* Update AnnotationsBuilder.php
2017-01-22 17:40:56 +01:00
danogentili
e469f05d64 Readd support for php 5.6 2017-01-21 18:13:28 +03:00
Vitor Mattos
02c94c4049 Performance increase (#46)
* Upgrade `phpseclib/phpseclib` from `2.0.4` to `dev-master`
2017-01-21 00:20:56 +01:00
Vitor Mattos
e7f642ea4c Changes for use .env file and not a php with sensible data (#37)
* * Changes for use .env file and not a php with sensible data

* * Changes for use .env file and not a php with sensible data
2017-01-15 17:38:04 +01:00
danogentili
96efd18e13 Added first alpha of web version and fixed bugs 2017-01-01 17:12:46 +03:00
Daniil Gentili
1dca7843a9 Added instructions for dependency installation in the docs, trying to fix composer 2016-11-24 23:40:19 +00:00
danogentili
12e2b0ab8d Updated tags 2016-11-17 15:05:31 +03:00
danogentili
5a8e490e6d Updated dependencies 2016-11-17 14:27:21 +03:00
danogentili
67de600bb8 Removed useless dependencies, made logging class static, made access to the PHPStruct class static, added default_dc setting in the settings array 2016-11-15 15:39:42 +03:00
danogentili
e8ba8feb92 Starting to handle acks 2016-08-22 21:24:22 +02:00
danogentili
e7487ab60c Fixed prime module, removed dependencies from repository, adapted for hhvm. 2016-08-10 14:51:28 +02:00
danogentili
4a8826bdad Started to reorganize class 2016-08-07 23:23:10 +02:00
danogentili
ab4cdca18a Update dependencies 2016-08-03 22:07:40 +02:00
danogentili
5bfb6a3b7e Updated dependencies 2016-07-29 17:19:25 +02:00
Daniil Gentili
c67c00cc18 Update 2016-07-21 14:44:30 +02:00
Daniil Gentili
9c5ac5e5c9 Added phpseclib 2016-07-15 13:17:53 +02:00
Daniil Gentili
e30ccb6717 Change aes engine 2016-07-15 13:03:36 +02:00