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

191 Commits

Author SHA1 Message Date
131d20f166
Fix 2021-04-05 22:23:06 +02:00
c48c643ba3
Minor fixes 2021-04-05 18:30:28 +02:00
30d151c332
Build improvements 2021-04-05 18:30:27 +02:00
4102c7f37b
Fix tests 2021-03-30 23:07:50 +02:00
41560ed29a
Replace travis environment variables 2021-03-30 21:18:38 +02:00
Sean
dfe9edb132
Update copyrights (#767) 2020-02-17 14:13:46 +01:00
51990eccfd
Remove excessively verbose logs from tests 2020-02-05 19:17:58 +01:00
48368be109
Bugfix 2020-01-16 21:14:38 +01:00
a63131583b Fix type hinting (now, make sure the API is start()ed before calling get methods 2020-01-03 13:09:42 +01:00
62dfaa0abe Add rename tests 2019-12-30 00:22:01 +01:00
ca074f436e
Don't rely on getcwd for tests 2019-12-29 13:29:00 +01:00
5bd51f7f81
Improve tests 2019-12-29 13:25:31 +01:00
894470a147
Refactor public API: full encapsulation and strict typing 2019-12-28 16:07:09 +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
92717a2d05
MUUUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BUUURN SNAKES BUUURN MUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA cough 2019-10-29 22:41:31 +01:00
45e9380ec8 Send PHP version id 2019-09-14 16:26:09 +02:00
662c947953 Properly shutdown in case of exception 2019-09-03 18:21:43 +02:00
824b62cd10 Fix tests 2019-09-02 17:21:20 +02:00
e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
bdc3ff6d8b bugfixes 2019-07-06 19:27:13 +02:00
53bf8176f5 Stuffs 2019-07-01 13:14:56 +02:00
c451471f78 Setting alias 2019-07-01 10:04:34 +02:00
37a9133a6f Improved 2FA 2019-06-30 15:12:43 +02:00
b40a9570c0 Bugfixes and improvements (subrelease) 2019-06-21 21:20:44 +02:00
948cf8162e Test modified artax too 2019-06-20 10:28:38 +02:00
8cd870366a Bugfixes and improvements to tests 2019-06-17 12:19:46 +02:00
9668727b80 Small fix 2019-06-16 22:15:31 +02:00
cef7e2348c Proper exit codes 2019-06-16 21:27:23 +02:00
b65beb3ece Update phpseclib and add smore tests 2019-06-16 21:20:29 +02:00
08a502cb2f Add async readline 2019-06-05 15:38:32 +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
453af1208b Fix calls 2019-05-15 22:08:49 +02:00
15499970a4 Update dependency 2019-05-13 17:59:10 +02:00
714ade6fbc Some fixes 2019-05-12 16:01:52 +02:00
c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
4fa1e606a3 Comment out testing.php string 2018-12-28 18:12:26 +01:00
08313ece9c close_and_reopen bugfix 2018-12-28 17:21:04 +01: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
837c541ea7 Apply fixes from StyleCI 2018-08-28 18:58:20 +00:00
41c682a12d Fix recursive alphabetical search and implement nothing in the socket fix 2018-08-28 20:55:49 +02:00
Daniil Gentili
6947d1b034 Use media DCs for file operations 2018-06-29 18:08:33 +00:00
33d95dab58 Apply fixes from StyleCI 2018-06-29 16:16:12 +00:00
855045099e Update to layer 82, implement media DC key exchange, revert logger API change, fix pretty TL traces, implement message splitting for parse_mode messages, fix TOS flow 2018-06-29 18:15:17 +02:00
87a989d0cf TOS update, update to layer 81, improve GUI/cli interface 2018-06-29 13:50:14 +02:00
Daniil Gentili
2cb4e80620 Improve examples 2018-03-29 11:53:27 +00:00
Daniil Gentili
86d146c977 Apply fixes from StyleCI 2018-03-23 15:39:58 +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
0918be3060 Apply fixes from StyleCI 2018-03-12 21:11:18 +00:00
Daniil Gentili
071be3bb80 Reorganizing documentation, rewrote peer management 2018-03-12 21:10:49 +00:00
e9dc0ba6f6 Implement socket interface 2018-03-04 17:42:48 +01:00
Daniil Gentili
85ec1c6830 Improved logging 2018-03-02 00:38:10 +00:00
Daniil Gentili
8a93db8f30 Update copyrights, and add phar creation script 2018-02-20 11:13:43 +00:00
Daniil Gentili
fde7307f1d Apply fixes from StyleCI 2018-02-19 12:23:53 +00:00
Daniil Gentili
ebceeda29b Stability fixes 2018-02-19 11:48:43 +00:00
Daniil Gentili
f0939e3725 Small bugfixes for magnaluna and resolve_username 2018-02-18 17:26:14 +00:00
Daniil Gentili
cca40a34ad Completely rewrite auth key and connection management, proxy fixes. 2017-12-23 02:03:07 +01:00
Daniil Gentili
10493516ed Major cleanup 2017-11-10 15:19:58 +00:00
Daniil Gentili
b3d9b1f07c Bugfixes 2017-11-09 11:31:11 +00:00
Daniil Gentili
8fdea307c6 Apply fixes from StyleCI 2017-11-03 16:46:37 +00:00
Daniil Gentili
abdddc42cc kkkk no breaking changes 2017-11-03 19:46:24 +03:00
Daniil Gentili
e5da891ac2 Docufix, changed deserialization API, added php 7 check 2017-11-03 15:02:01 +03:00
Daniil Gentili
6cf583ec97 Bugfix (closes #184) 2017-10-06 16:06:17 +03:00
Daniil Gentili
5de64b4f61 Update phpseclib, add support for socket streams, fix localization and other bugfixes 2017-10-05 18:53:56 +03:00
Daniil Gentili
7dec60c0b2 Apply fixes from StyleCI 2017-10-04 17:09:11 +00:00
Daniil Gentili
de26dc37ab Proxy fixes 2017-10-04 20:08:45 +03:00
Daniil Gentili
860ebcce8b Readable errors 2017-09-24 22:24:04 +00:00
Daniil Gentili
1c9f43c852 Apply fixes from StyleCI 2017-08-29 15:00:47 +00:00
Daniil Gentili
fefbe41f29 Added new serialization method 2017-08-29 17:00:31 +02:00
Daniil Gentili
118c01eea0 No more phone numbers in .env 2017-08-29 14:23:44 +02:00
Daniil Gentili
d30bf4b4ee now download_to_file and download_to_dir return an absolute path, and accept document objects 2017-08-28 01:22:04 +02:00
Daniil Gentili
37ab960266 Apply fixes from StyleCI 2017-08-25 16:28:08 +00:00
WeCan Group
5f737f648f fixed! (#175)
Fatal error: Uncaught Error: Call to undefined function readline()
2017-08-25 20:27:57 +04:00
Daniil Gentili
5e5e2e2d7f fixes 2017-08-18 13:51:27 +02:00
Daniil Gentili
a4b8a39437 Better docs 2017-08-18 13:27:44 +02:00
Daniil Gentili
f16aa7c63a Apply fixes from StyleCI 2017-08-13 16:52:32 +00:00
Daniil Gentili
8203aebae0 Finally, a way to make people RTFM 2017-08-10 08:18:28 +00:00
Daniil Gentili
6fdb63bac2 Fixed visualization 2017-07-31 14:42:24 +00:00
Daniil Gentili
b2e9930d16 Secret chat fixes 2017-07-30 23:16:05 +02:00
Daniil Gentili
4d6365fc3d docufixes 2017-07-24 11:40:02 +02:00
Daniil Gentili
4c05506baf Some CDN fixes 2017-07-24 09:18:10 +02:00
Daniil Gentili
54f69ece92 Bugfixes 2017-07-24 01:32:29 +02:00
Daniil Gentili
a44e7a65d0 Added call and PWRTelegram docs 2017-07-23 16:11:02 +02:00
Daniil Gentili
8535df5908 You can now export/import the current authorization key 2017-07-22 14:11:07 +02:00
Daniil Gentili
4aa9578c4f Final fixes 2017-07-21 23:06:47 +02:00
Daniil Gentili
432b723678 smore fixes 2017-07-21 11:23:09 +01:00
Daniil Gentili
eae7b6df7d done 2017-07-20 16:20:19 +02:00
Daniil Gentili
5cd8c6d367 thx 2017-07-19 22:51:19 +01:00
Daniil Gentili
3a5e5a9c43 Improvements 2017-07-19 12:41:18 +02:00
Daniil Gentili
71986cf536 memes 2017-07-14 00:54:16 +01:00
Daniil Gentili
6113c0d63c Improved parsing of settings and logging 2017-07-12 14:33:10 +02:00
Daniil Gentili
b96c31e893 I really like abstraction 2017-07-09 11:08:01 +01:00
Daniil Gentili
c1fd3c4ea7 COLORS!!!! (and custom logging callbacks 2017-07-08 00:11:27 +02:00
Daniil Gentili
87dc456844 Apply fixes from StyleCI 2017-07-06 16:37:43 +00:00
Daniil Gentili
890e4d65cc Do not delete secret chat/call creation updates 2017-07-06 18:36:02 +02:00
Daniil Gentili
d1bed9e6a0 Apply fixes from StyleCI 2017-07-01 17:40:08 +00:00
Daniil Gentili
54e7499930 Fixes to lua 2017-07-01 19:39:35 +02:00
Daniil Gentili
dddad90616 Apply fixes from StyleCI 2017-06-30 13:37:18 +00:00
Daniil Gentili
70a85cb6be Updated to layer 68 2017-06-30 15:36:33 +02:00