Commit Graph

1919 Commits

Author SHA1 Message Date
310b489dfb Avoid issues with bad connections 2019-09-13 18:03:18 +02:00
d681df8aff Better logging 2019-09-13 17:34:39 +02:00
4d599e017b Improve socket management 2019-09-13 17:24:52 +02:00
aff46a1cc3 Update docs 2019-09-13 17:14:37 +02:00
a75ee912fd Update 2019-09-13 15:10:08 +00:00
41f070b33e Fix 2019-09-13 16:56:29 +02:00
b6a517ede5 Fix 2019-09-13 16:55:48 +02:00
99d878d4f7 bugfix 2019-09-13 13:34:30 +02:00
0702ea6ec9 bugfix 2019-09-13 13:24:54 +02:00
b461a69197 fix 2019-09-12 22:23:51 +00:00
dc34903d33 Backwards compatibility 2019-09-12 20:30:49 +02:00
c411b3a746 Fix web 2019-09-12 20:14:11 +02:00
f15c8fa278 Fix CHANNEL_INVALID errors 2019-09-12 17:54:43 +00:00
dad344b18b Basic 105 docs 2019-09-12 19:08:48 +02:00
0db1196afb Better logging 2019-09-12 18:56:26 +02:00
5c104180f0 php 7.4 fixes 2019-09-04 16:50:34 +00:00
4cd966c5c0 Log during tests 2019-09-04 16:33:27 +00:00
4619d44b12 Clean up 2019-09-04 17:48:07 +02:00
75945704dd Just update callbacks 2019-09-03 19:10:39 +02:00
1ba3258581 Allow ctrl-c at any time 2019-09-03 19:03:39 +02:00
848d1f310b Remove duplicates to avoid problems with PHP 5 2019-09-03 18:30:52 +02:00
d7c7445207 Proper exit code 2019-09-03 18:29:50 +02:00
662c947953 Properly shutdown in case of exception 2019-09-03 18:21:43 +02:00
f26665479e Logger bugfix 2019-09-03 18:04:16 +02:00
59e00e8ba9 Finally fix CTRL-C 2019-09-03 17:55:44 +02:00
105ffb443a Better docs 2019-09-03 16:53:39 +02:00
4f248b030b Bugfixes 2019-09-03 14:40:50 +02:00
737048c1ae Backwards compatibility 2019-09-02 15:53:10 +00:00
f63065f1f3 Magnaluna bugfix 2019-09-02 17:44:13 +02:00
cfaa6241c2 Bugfix for magnaluna 2019-09-02 15:42:19 +00:00
4c8c6043c6 Log multireason exceptions 2019-09-02 17:31:44 +02:00
28e236e880 Bugfix 2019-09-02 17:29:29 +02:00
824b62cd10 Fix tests 2019-09-02 17:21:20 +02:00
e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
72d353fff0 Parallelized uploads and downloads, upload by URL and rename files 2019-09-02 16:54:36 +02:00
d1bbc86d21 Bugfixes 2019-09-02 15:30:29 +02:00
0f7ffc2da7 Save 2019-09-02 14:37:30 +02:00
ea2b28dbb1 Refactor auth key management 2019-09-01 23:39:29 +02:00
3107aee776 PHPDOC 2019-09-01 14:07:04 +02:00
40c0976c5a Almost finished refactoring 2019-09-01 01:52:28 +02:00
a1d139d526 Refactor 2019-08-31 23:07:20 +02:00
3fe86e0162 Refactoring 2019-08-31 22:43:58 +02:00
d2010cc259 Merge 2019-08-29 18:34:33 +02:00
9321f3d0af Convert inputEncryptedChat 2019-08-25 20:40:42 +02:00
2c2e33636f Layer 104 2019-08-15 20:33:07 +02:00
andrew-ld
e1100b3fc6 bugfix (#680) 2019-08-12 21:10:09 +02:00
92fb0c95de Undo 2019-08-10 18:24:24 +02:00
80b0432b1c Manually generate email and phone entities 2019-08-10 18:22:54 +02:00
8fb21a8b74 Ignore secure values, will implement later 2019-08-04 12:23:12 +02:00
eabce85f6e Small bugfix 2019-08-02 13:09:43 +02:00
30426db3df Conversion bugfix (closes #662) 2019-07-27 15:51:54 +02:00
60efcb67c5 Use static rpc endpoints 2019-07-27 12:37:05 +02:00
b38366dd55 Add getEventHandler in combinedAPI 2019-07-24 20:31:46 +02:00
9bf529b483 Some fixes 2019-07-23 13:07:54 +02:00
Daniil Gentili
c31f4493a1 Smaller timeout for database 2019-07-21 14:52:34 +00:00
Daniil Gentili
1067d24e7c Call bugfix 2019-07-21 14:50:48 +00:00
261ce6401b Update system and reference database bugfixes 2019-07-20 20:50:00 +02:00
Daniil Gentili
2f5dcf5daa Create perioc loop 2019-07-18 22:02:18 +00:00
Daniil Gentili
c614acd43c Small merge fixes 2019-07-18 21:59:02 +00:00
a951ae380f
Async magnaluna and more async bugfixes (#667) 2019-07-18 23:48:35 +02:00
005d762a8f Cast to string to avoid issues with Bytes objects 2019-07-16 15:18:37 +02:00
Daniil Gentili
c5f078cc1d bugfix 2019-07-15 20:15:01 +00:00
22bac48aee Self-restart bugfix 2019-07-11 20:18:08 +02:00
b5786a6502 RPC error description fetching bugfix 2019-07-11 17:07:38 +02:00
62caab773f "localize" 2019-07-09 20:53:25 +02:00
1efbe6a337 Small bugfix and improvement for layer diffing script 2019-07-07 19:37:54 +02:00
26d13c6e5c Layer 103 2019-07-07 19:34:15 +02:00
c97b3e72d8
Update Loop.php 2019-07-07 13:00:29 +02:00
bdc3ff6d8b bugfixes 2019-07-06 19:27:13 +02:00
4fa69920fa Merge branch 'master' of https://github.com/danog/MadelineProto 2019-07-06 19:22:13 +02:00
c1a8229ff3 Backwards compatibility 2019-07-06 19:22:02 +02:00
60989481ff More fixes 2019-07-06 19:01:11 +02:00
f33c3c9ee6 Typo fix 2019-07-06 17:57:14 +02:00
92e8b58bd9 Merge 2019-07-06 17:48:34 +02:00
3dc3d6e5c8 Some bugfixes 2019-07-06 17:45:03 +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
6b5775da79 Default to obfuscated transport with websocket 2019-06-29 15:21:29 +02:00
5cfaee670c Merge 2019-06-29 14:54:12 +02:00
49903b215e
Obfuscated bugfix 2019-06-28 19:37:23 +02:00
5af3fe77c6 Bugfix 2019-06-27 11:27:13 +02:00
11c8f627a6 Bugfix 2019-06-27 11:26:39 +02:00
9d86507eb8 Better exceptions 2019-06-26 17:16:06 +02:00
eafa19eb4e Small workaround 2019-06-25 18:11:42 +02:00
214fc0d0f9 Bugfix 2019-06-25 18:02:56 +02:00
Daniil Gentili
6f5d1b16fa Fix upload by URL 2019-06-25 15:11:37 +00:00
cd5cd8611c Fixes 2019-06-25 15:38:30 +02:00
e1556822c0 Upload files with no content-length, too 2019-06-25 15:36:09 +02:00
8ab033e995 Add PremadeStream 2019-06-25 14:11:04 +02:00
3f3f2f5ea1 Bugfixes 2019-06-25 14:09:39 +02:00
45841add14 Bugfixes 2019-06-25 12:39:31 +02:00
5f50fa4636 Bugfix 2019-06-24 20:14:28 +02:00
83d9c2e1a0 Finish implementing new upload 2019-06-24 20:03:15 +02:00
7dbf529bb1 Implement parallelized upload 2019-06-24 18:55:37 +02:00
58d71a390a Merge 2019-06-24 16:35:37 +02:00
949bd194ed HTML escaping bugfixes 2019-06-24 16:28:54 +02:00
a23d71b44f Layer 102 2019-06-24 15:46:38 +02:00
3886305284 Start rewriting upload 2019-06-24 15:14:09 +02:00
2b1f44a31f Implement download_to_callback 2019-06-24 14:42:14 +02:00
Daniil Gentili
506d1b1fd4 Phone call bugfix (subrelease) 2019-06-24 10:47:44 +00:00
698d0cb59f Parallelize downloads 2019-06-23 17:46:51 +02:00
8bfeb13176 Update docs 2019-06-23 13:08:44 +02:00
5fa5a14139 Another bugfix 2019-06-23 12:35:30 +02:00
2672728fe3 Add getPropicInfo method and fix some bugs 2019-06-23 12:32:23 +02:00
09fc49459f Merge branch 'master' of https://github.com/danog/MadelineProto 2019-06-22 20:34:32 +02:00
caae5a8fd9 Bugfixes for my.telegram.org wrapper 2019-06-22 20:34:15 +02:00
Alexander Pankratov
e67c06e355 Cleanup memory and session files (#608)
* Cleanup memory and session files

* Codestyle

* composer.json

* add setting to control cleanup

* Typo fix

* revert composer edits

* Version change
2019-06-22 19:54:44 +02:00
74ab5d2ff5 Small bugfix 2019-06-22 18:39:40 +02:00
5468858298 Update to layer 100 2019-06-22 18:22:38 +02:00
2d2a3bd01f Wrap wait 2019-06-22 16:34:46 +02:00
119e29f4a7 Regenerate settings on wakeup 2019-06-22 10:05:27 +02:00
b40a9570c0 Bugfixes and improvements (subrelease) 2019-06-21 21:20:44 +02:00
ac7f078e8c Backwards compatiblity fix 2019-06-21 18:37:39 +02:00
4ed8e8bd9b Init Magic class when getting settings 2019-06-21 17:58:58 +02:00
df4e667bd7 Various bugfixes 2019-06-21 17:57:13 +02:00
100d0f8c76 Do not check qts with updates fetched via getDifference 2019-06-21 16:49:22 +02:00
eba925759a Do not use 64-bit format codes on 32-bit machines 2019-06-21 16:11:08 +02:00
7c7d2cb50c Properly handle closed sockets and polyfill some more methods 2019-06-21 12:16:48 +02:00
b9e8c5a06f Fix proxied DNS over HTTPS 2019-06-21 11:41:33 +02:00
d82914187c Make the stream API generic again 2019-06-20 20:30:29 +02:00
0a33f69e8b Improve logging and settings logic 2019-06-20 20:21:31 +02:00
948cf8162e Test modified artax too 2019-06-20 10:28:38 +02:00
09360e9308 Null file reference bugfix 2019-06-19 17:19:41 +02:00
927f0f2b7a Support ipv6 domain name resolution 2019-06-19 14:49:28 +02:00
53dff22994 Disable DNS over HTTPS on webhosts 2019-06-19 13:49:51 +02:00
3f03a7b21a Conversion bugfixes 2019-06-19 11:18:51 +02:00
0e80e9723b Bugfix 2019-06-18 14:05:23 +02:00
40e2e6c09d Various bugfixes 2019-06-18 12:31:44 +02:00
47f0285881 Small bugfix 2019-06-17 13:09:40 +02:00
1397842c86 Init default update state if not present 2019-06-17 13:01:13 +02:00
31fb37d39c Improved logs 2019-06-17 12:42:42 +02:00
8cd870366a Bugfixes and improvements to tests 2019-06-17 12:19:46 +02:00
b65beb3ece Update phpseclib and add smore tests 2019-06-16 21:20:29 +02:00
48686e0efa Bugfix 2019-06-14 12:36:08 +02:00
4cfe1467ff Properly reset session on logout 2019-06-14 12:00:21 +02:00
883811ef00 Bugfix 2019-06-14 11:29:28 +02:00
059b24d926 Reset update state on logout 2019-06-13 20:05:39 +02:00
c09488aa12 Minor fixes 2019-06-13 19:46:58 +02:00
b2bd441f42 Try using null file reference for unknown files 2019-06-13 18:11:31 +02:00
471c3fc534 Workaround 2019-06-13 17:56:46 +02:00
Daniil Gentili
69ed0f733d Improved error handling 2019-06-13 15:04:48 +00:00
c7bafaf564 bugfix 2019-06-13 15:21:29 +02:00
35c20d9bff Final fixes for web login 2019-06-13 14:58:31 +02:00
2d70f51b2c Multiple fixes 2019-06-13 14:43:30 +02:00
1a2a6db17f Final altervista fixes 2019-06-13 14:08:48 +02:00
0544ad7320 HTTP proxy bugfix 2019-06-12 22:18:53 +02:00
80e50bcf20 Use custom artax for DNS over HTTPS 2019-06-12 20:52:38 +02:00
3fe04930e7 Better error handling and proxied DNS over HTTPS 2019-06-12 20:51:38 +02:00
1ea8b9683a Just this is enough 2019-06-12 19:02:33 +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
73dc3fbcfd Better shutdown and signal logging 2019-06-08 21:01:57 +02:00
11fa07b5d3 Smol fix 2019-06-08 16:43:46 +02:00
8b49c1fbe5 require artax 2019-06-08 13:54:06 +02:00
3b4d45bd34 Workaround for async init 2019-06-08 13:29:54 +02:00
Daniil Gentili
7929e8053e Fix 2019-06-08 00:21:38 +00:00
a64e55cbd8 fix 2019-06-07 20:56:40 +02:00
afc64ca257 Bugfixes 2019-06-07 19:15:12 +02:00
954c64127e Fix 2019-06-07 18:33:06 +02:00
24b92b9a71 Fix 2019-06-07 17:21:43 +02:00
Daniil Gentili
53b72c8a29 Various bugfixes 2019-06-07 00:48:25 +00:00
7bed1c6493 Fix 2019-06-06 19:54:22 +02:00
d18300a631 Make all helper functions static, and add support for ArrayAccess in coroutines 2019-06-06 19:52:02 +02:00
Daniil Gentili
c16328396d Bugfix 2019-06-06 14:22:52 +00:00
6a6fcb782d Add shutdown API 2019-06-06 15:57:21 +02:00
fd1234bfbd Fix 2019-06-06 00:33:11 +02:00
a4e25ecfa2 Bypass possible server-side bug 2019-06-05 22:01:11 +02:00
c71dd59f87 Parse updates 2019-06-05 21:41:42 +02:00
b59e62a725 Fix HTML parser 2019-06-05 21:09:25 +02:00
864172ce74 Reset message ID array 2019-06-05 20:41:57 +02:00
4a8f3d15c1 FIx 2019-06-05 20:26:09 +02:00
986b0efd8d Finish writing changelog 2019-06-05 19:10:26 +02:00
3a4325f691 Add async echo 2019-06-05 16:45:33 +02:00
1e24296268 Fixing stuff 2019-06-05 15:56:59 +02:00
08a502cb2f Add async readline 2019-06-05 15:38:32 +02:00
3b26ae40a1 Updated changelog 2019-06-05 12:04:36 +02:00
0f6cccf941 Almost done 2019-06-04 23:55:02 +02:00
7509e81d6f Improved logging 2019-06-04 18:56:01 +02:00
e900358bd2 Improved logging 2019-06-04 18:36:47 +02:00
2614c863a4 Handle stream errors 2019-06-04 18:24:25 +02:00
5b5c81b221 Another small bugfix 2019-06-04 17:57:49 +02:00
e229d73834 Bugfix 2019-06-04 17:53:42 +02:00
d18ef430b9 Fix phar build 2019-06-04 15:22:47 +02:00
541f9b67ac Probably improve error handling in strands 2019-06-04 15:06:47 +02:00
5b51d71257 Improved logs 2019-06-04 15:02:39 +02:00
a1daca04da
Style fixes 2019-06-04 14:55:58 +02:00
832df205c4 Finally stabilize dependencies 2019-06-04 14:25:13 +02:00
6a6066b8ad Improved logging and disconnect 2019-06-04 13:49:01 +02:00
387584a178 Multiple args 2019-06-04 13:29:46 +02:00
61114c6a92 Fixes and new get_dialogs 2019-06-04 13:27:21 +02:00
e80d67037c Improvements 2019-06-03 22:33:53 +02:00
120ff0aba9 Multiple fixes 2019-06-03 20:51:10 +02:00
332a0f9416 Merge branch 'master' of https://github.com/danog/MadelineProto 2019-06-02 16:27:37 +02:00
df98df1446 Various bugfixes 2019-06-02 16:23:49 +02:00
030cc65369 Changelog 2019-06-02 15:02:15 +02:00
f0b51da9cf Fix providing settings to wakeup 2019-06-02 14:29:17 +02:00
33041140e2 Add continue constant to genericloop 2019-06-02 13:45:12 +02:00
e6375a4701 Rename generic loop 2019-06-02 13:27:16 +02:00
751aedf92b Fixes and improvements 2019-06-02 12:29:29 +02:00
9317a9feed welp 2019-06-02 12:04:34 +02:00
bb8bf4a048 Fixes 2019-06-02 12:03:38 +02:00
62c29c9415 Split acks 2019-06-02 11:54:56 +02:00
ab6175575e More logs and hotfix 2019-06-02 11:34:19 +02:00
5e6beafec6 Properly start update system 2019-06-01 22:04:37 +02:00
0c40d6fb58 Slight improvement 2019-06-01 21:24:38 +02:00
Mattia
690b38e11d Removed received update logging. (#634) 2019-06-01 21:19:12 +02:00
fd03b39a46 Handle updateShortSentMessages 2019-06-01 21:16:52 +02:00
b6fc41612a Updated examples and async callbacks 2019-06-01 18:15:14 +02:00
660be7ae70 Wrap remaining amphp helper methods 2019-06-01 16:22:44 +02:00
Daniil Gentili
692bcbcb1d Do not handle empty messages in the example bot 2019-06-01 13:45:07 +00:00
Daniil Gentili
94f2de3cd2 Handle empty messages properly 2019-06-01 13:42:17 +00:00
2924bb66a1 Add support for iterable proxy settings 2019-06-01 14:04:10 +02:00
58f0bce84b Fix photosize conversion 2019-06-01 13:13:59 +02:00
2118665a29 Bugfixes 2019-06-01 12:47:18 +02:00
fa4cf14ab7 Update fixes and get_self improvements 2019-05-31 17:43:49 +02:00
c7ed411070 Improve message splitting 2019-05-31 15:31:23 +02:00
c6b3aa96d0 Update copyrights 2019-05-31 12:18:10 +02:00
a7b75a1a0a fixes 2019-05-31 00:33:32 +02:00
2039667f82 Minor bugfix 2019-05-30 17:27:22 +02:00
060659dc92 Improved update signaling 2019-05-30 17:22:28 +02:00
9197c7013d Nice fix 2019-05-30 15:39:51 +02:00
be11dcfef1 Check message IDs of messages received with getDiff 2019-05-30 15:25:56 +02:00
32aff162e2 Pretty much working 2019-05-30 15:17:26 +02:00
81302f05fd Minor fixes 2019-05-30 14:19:38 +02:00
d42f677884 Fixes 2019-05-30 14:09:15 +02:00
558afb9183 Finish writing feeder logic 2019-05-30 13:28:50 +02:00
b4114cd5f8 Fixes 2019-05-29 22:36:16 +02:00
5da683f508 Now working (with a huge latency but working) 2019-05-29 22:12:36 +02:00
28928e339f More rewriting 2019-05-29 22:00:51 +02:00
60b20f98f7 More feeders 2019-05-29 18:28:43 +02:00
c86e9d31fb Continue rewriting update management 2019-05-29 17:19:42 +02:00
7f47e3de85 Rewriting update management 2019-05-29 15:17:14 +02:00
ff271bbf68 Reduce latency 2019-05-27 15:42:16 +02:00
ec6ba6ea76 Synchronous my.telegram.org wrapper 2019-05-22 17:50:07 +02:00
b339a9d849 Major fixes and refactoring of wrapper APIs 2019-05-22 17:35:16 +02:00
50b85629ab Whoops 2019-05-15 22:10:53 +02:00
453af1208b Fix calls 2019-05-15 22:08:49 +02:00
f155738b56 Update dependencies 2019-05-14 21:07:25 +02:00
d18d97d208 Improve traces on web 2019-05-13 18:06:16 +02:00
da561de1a9 Improve composer.json and serialization 2019-05-13 17:48:53 +02:00
28afd56d54 Remove some workarounds 2019-05-13 17:34:56 +02:00
Daniil Gentili
d8e85de823 Destroy old _bk connections 2019-05-13 14:15:53 +00:00
fd14f8c6b6 Use custom wait 2019-05-13 13:53:31 +02:00
be9c822d11 Minor bugfixes and performance improvements 2019-05-13 11:38:54 +00:00
afbb08a027 Fixes 2019-05-13 13:07:30 +02:00
12f8c095c3 Use more callFork 2019-05-13 11:44:48 +02:00
48dad117c2 Defer resolution of update deferred 2019-05-13 01:35:53 +02:00
34e957e811 Fixing auto-asyncify 2019-05-13 01:14:45 +02:00
cf456dbeb7 Updates fix 2019-05-13 01:00:22 +02:00
fe1d87af27 Final fixes 2019-05-13 00:22:45 +02:00
6e390a92bb Improvements 2019-05-12 21:23:25 +02:00
56bce59cdb Do not include traits twice 2019-05-12 21:03:13 +02:00
f7bd6a922e Bugfixes 2019-05-12 20:33:18 +02:00
714ade6fbc Some fixes 2019-05-12 16:01:52 +02:00
7dae233bf7 Small bugfix 2019-05-12 14:07:46 +02:00
1b88769aef Async RSA (hehe) 2019-05-12 13:51:16 +02:00
5ec4195173 Async HTTP requests 2019-05-12 13:45:52 +02:00
Daniil Gentili
07043f2d7d whoops 2019-05-12 10:59:52 +00:00
dcb63a2f6d Performance improvements 2019-05-12 12:56:00 +02:00
59bf76aefa Merge remote 2019-05-12 12:37:26 +02:00
fc459f5e49 Sm0l fix 2019-05-12 12:36:09 +02:00
bdd04ff7b3 Simpler async API 2019-05-12 12:06:58 +02:00
Daniil Gentili
1c8159c412 Minor bugfixes 2019-05-12 09:17:19 +00:00
Daniil Gentili
688283e3a0 Async button 2019-05-11 20:29:03 +00:00
d44e35f514 Async button click 2019-05-11 21:04:01 +02:00
fc5f2920a1 Update libtgvoip version 2019-05-11 20:48:04 +02:00
7ca89ce869 Asyncify update handling 2019-05-11 20:38:26 +02:00
240910475f Bugfixes 2019-05-11 18:17:42 +02:00
fcad92d7cb Remove old synchronous methods 2019-05-11 17:55:30 +02:00
db2eadb217 Working on async update management... 2019-05-11 17:33:43 +02:00
caec0e5109 Asyncify (5th and final pass) 2019-05-11 17:18:10 +02:00
bea156f064 Asyncify (4th pass) 2019-05-11 17:17:16 +02:00
d17daf902a Asyncify (3rd pass) 2019-05-11 17:16:13 +02:00
cacc792619 Asyncify (2nd pass) 2019-05-11 17:12:17 +02:00
66f84f4b05 Automatic asyncify (1st pass) 2019-05-11 17:01:36 +02:00
b9b9e6635d Change a few function names 2019-05-11 16:40:25 +02:00
1b84c2e683 Async factorization 2019-05-11 15:58:54 +02:00
405df0a693 Add missing files 2019-05-11 04:22:32 +02:00
1cb0378a16 f i x i n g a t 3 a m 2019-05-11 01:10:18 +00:00
Daniil Gentili
e83575ffdb Fix path 2019-05-10 23:47:06 +00:00
Daniil Gentili
285bbca44c CombinedAPI and madeline.php improvements 2019-05-10 23:02:15 +00:00
d1be0834cc CombinedAPI bugfix 2019-05-10 21:08:09 +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
d26fa7ef12 CombinedAPI improvements 2019-05-10 15:52:35 +02:00
8dedb13b5e Clean up unused stuff 2019-05-10 14:07:15 +02:00
8d7b910058 Merge branch 'master' of https://github.com/danog/MadelineProto 2019-05-10 13:49:23 +02:00
dee94bab3a CombinedAPI bugfixes 2019-05-10 13:49:16 +02:00
c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
Daniil Gentili
6320b2ea89 Poll conversion 2019-05-06 11:25:38 +00:00
52fffa7a68 Improve async docs 2019-05-04 14:08:48 +02:00
cc84816ed1 Async docs and bugfixes 2019-05-03 21:10:56 +02:00
4c52776de9 Fix serialization during async construction 2019-05-03 20:30:30 +02:00
406a2d8aad Async constructor 2019-05-02 21:30:50 +02:00
Daniil Gentili
2e4be09279 Start debugging PTS 2019-04-30 20:11:58 +00:00
Daniil Gentili
e31555b7a7 More bugfixes and rewriting 2019-04-29 14:42:08 +00:00
Daniil Gentili
c21bcba681 Parse peers from smore updates 2019-04-29 11:18:39 +00:00
Daniil Gentili
cf7a407368 Last commit before watching endgame 2019-04-28 15:27:50 +00:00
de1f2445a4 Bugfix 2019-04-28 13:24:05 +02:00
6636b7dfa6 Fix websockes 2019-04-20 17:18:45 +02:00
77c69b1024 Fix autologin 2019-04-04 21:29:08 +02:00
HenkGrent
f5dcaa639c My telegram org wrapper duplication reduction (#594)
* Reduce duplicate  code

* Remove testing code

Not needed.

* Final --> public

* Convention

The code now adheres to the StyleCI's style convention.

* SSStyle

Missed some things

* Three time's the charm

Right
2019-04-02 17:32:14 +02:00
Daniil Gentili
651e1afd66 Improve config fetching 2019-03-30 13:01:47 +00:00
Daniil Gentili
f3ad0acbfe Make web login async 2019-03-30 00:48:03 +00:00
Daniil Gentili
1f9ebfc568 VoIP detection improvements 2019-03-29 23:41:16 +00:00
Daniil Gentili
c59aae4218 Fixes 2019-03-29 23:30:07 +00:00
Daniil Gentili
b306c98e4b Fix 2019-03-29 23:05:29 +00:00
5c1281196a Update docs to layer 97 2019-03-29 21:12:45 +01:00
a5376e91a5 Update to layer 97 2019-03-29 21:06:34 +01:00
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
HenkGrent
388bfcecc5 Remove useless self-assignment (#592) 2019-03-14 12:37:33 +01:00
05a2c682e1 Hi 2019-03-13 13:20:41 +01:00
d385e9383b Pony merda (#590)
* Update CallHandler.php

* Update BotAPI.php

* Update CallHandler.php

* pony merda

* Update BotAPI.php

* Update BotAPI.php
2019-03-11 23:45:48 +01:00
169cfe2704
https://git.io/fhjR3 2019-03-11 21:42:15 +01:00
0f2ac77a20
Allow native methods 2019-03-11 21:29:12 +01:00
88651371d7 Minor fixes 2019-03-09 20:27:57 +01:00
e7c4cfbfe6 Update translation 2019-03-08 14:16:57 +01:00
2e3d0c5361 Update to layer 95 2019-03-08 13:44:57 +01:00
Daniil Gentili
bcebd5e0fb Fix memory leak 2018-12-31 14:12:08 +00:00
Daniil Gentili
ef4d176cbd Do not enable AMPHP multiprocessing 2018-12-31 13:11:49 +00:00
Daniil Gentili
b4cecd9fbd Bugfix 2018-12-31 13:09:46 +00:00
Daniil Gentili
06d083aae8 Merge branch 'master' of https://github.com/danog/MadelineProto 2018-12-31 13:08:41 +00:00
5ffae641d2 PFS fixes 2018-12-31 14:02:24 +01:00
Daniil Gentili
2691055b4d Do not use getcwd if disabled 2018-12-29 17:04:16 +00:00
57970e9019 Important bugfix 2018-12-28 18:09:30 +01:00
08313ece9c close_and_reopen bugfix 2018-12-28 17:21:04 +01:00
16087b4863 Add warning 2018-12-28 16:20:03 +01:00
Daniil Gentili
0dfdf0aade Logging fixes 2018-12-28 10:52:25 +00:00
Daniil Gentili
2e428cecd0 More logs 2018-12-28 02:37:00 +00:00
Daniil Gentili
f9b6e29904 More logs 2018-12-28 02:32:10 +00:00
Daniil Gentili
87fdbda399 Ignore headers already sent errors 2018-12-27 23:17:47 +00:00
Daniil Gentili
422589ac2b Restart anyway 2018-12-27 22:52:52 +00:00
bfff131c28 Add additional caching for empty access hashes 2018-12-27 23:26:40 +01:00
2ed2bac6f0 Improve update handling 2018-12-27 23:23:10 +01:00
69505c3e8b Check if headers were sent 2018-12-27 23:10:25 +01:00
aed36aac8d Use 1ms timeout if get_updates timeout is 0 2018-12-27 22:49:32 +01:00
a85a5e0fd1 Move PHP logging 2018-12-27 22:39:31 +01:00
aea8f0c3e3 Enable shutdown function and lock manager even on unlimited webhosts 2018-12-27 22:24:45 +01:00
6e366c5c08 Disable parallel processing on phar 2018-12-27 22:05:02 +01:00
1e259ae6c8 Improve update handling logic 2018-12-27 21:57:28 +01:00
0e69468a5a Implement PHP logging 2018-12-27 21:24:33 +01:00
79b0e647f5 Enable PHP logging 2018-12-27 21:22:47 +01:00
812dc89bc2 Implement locking for event handler 2018-12-27 21:15:43 +01:00
a0bc08b33e Protocol padding fixes 2018-12-27 18:22:05 +01:00
79f7d92767 Async file upload with sendMedia & callback fixes 2018-12-27 18:17:18 +01:00
e5582beb87 Logging bugfix 2018-12-27 17:16:49 +01:00
Daniil Gentili
73f5bec68f Fix reset_update_state 2018-12-27 12:24:55 +00:00
Daniil Gentili
f31af1d645 Terminate generators when YieldReturnValue is yielded 2018-12-27 11:59:48 +00:00
Daniil Gentili
5b83cd9322 Add reset_update_state method 2018-12-27 11:27:05 +00:00
Daniil Gentili
69a2131206 Support yield return polyfill 2018-12-27 02:47:21 +00:00
Daniil Gentili
fadf967e6a Convert edit updates in file info fetching function (closes #518) 2018-12-27 00:39:31 +00:00
Daniil Gentili
a2fc5e9c94 get_updates fix 2018-12-26 22:46:10 +00:00
Daniil Gentili
495e543238 Do not even try using parallel processing if not running in CLI 2018-12-26 21:53:10 +00:00
Daniil Gentili
d0829a6f96 Parallel bugfix 2018-12-26 20:57:46 +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
367b0536b9 Apply fixes from StyleCI 2018-11-10 19:57:02 +00:00
91a3b029b1
Update Events.php 2018-11-10 20:56:38 +01:00
Sean
4c1096a49a Add Syntax Highlight for Document Generator (#519)
Add PHP, Lua language tag to Code area
2018-10-21 12:12:26 +02:00
Daniil Gentili
2786aa7bfa Removed unused sanitizations 2018-10-13 16:39:55 +00:00
ca59f86b0f Apply fixes from StyleCI 2018-10-13 16:26:46 +00:00
Daniil Gentili
3cb24dc413 Log sanitization 2018-10-13 16:26:31 +00:00
ec42f14bf9 Apply fixes from StyleCI 2018-10-13 16:07:07 +00:00
Daniil Gentili
52e670d7a5 Tweakable part size 2018-10-13 16:06:51 +00:00
Daniil Gentili
b4835f595f More bugfixes 2018-10-13 15:55:44 +00:00
Daniil Gentili
deee5a4dfd Add PrettyException to ConversionException 2018-10-13 15:26:59 +00:00
Daniil Gentili
c2c3d2544a Bugfixes 2018-10-13 15:12:57 +00:00
980d0b1fb1 Support php-libtgvoip alpha 2018-09-03 17:32:43 +02:00
aa561316d6 Apply fixes from StyleCI 2018-08-31 12:25:45 +00:00
c74b97035e Make more objects optional 2018-08-31 14:25:28 +02:00
Daniil Gentili
c25da356a6 Peer bugfix 2018-08-30 20:49:58 +00:00
3eca1368b2 Apply fixes from StyleCI 2018-08-30 18:02:40 +00:00
c86488a244 Implement lots of additional peer casting 2018-08-30 19:58:58 +02:00
5de602a1fd Fixes to the update loop 2018-08-29 17:55:56 +02:00
0a91935cc1 Docufixes 2018-08-29 17:27:28 +02:00
32e45b83f6 Implement hash abstracion 2018-08-29 17:16:38 +02:00
b304e6b923 Docufix 2018-08-29 11:25:49 +02: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
9eeabaa81b Small bugfix 2018-08-19 19:33:08 +02:00
f3a21fa754 Serialization bugfixes 2018-08-19 11:38:18 +02:00
9993af864c Serialization bugfix 2018-08-19 11:26:55 +02:00
Daniil Gentili
54b505328b webhook bugfixes 2018-08-09 08:15:09 +00:00
d5758e1855 Apply fixes from StyleCI 2018-08-02 12:12:44 +00:00
Daniil Gentili
4121a3f017 Bugfixes and performance improvements 2018-08-02 12:12:07 +00:00
c04a05f0ac Apply fixes from StyleCI 2018-07-19 16:58:17 +00:00
Daniil Gentili
75456bfad4 Send TTL service messages to update handler 2018-07-19 16:57:15 +00:00
badc751a0f Store random_id in internal secret message database 2018-07-19 18:42:30 +02:00
6fcd5247b1 Secret chat abstraction improvements 2018-07-19 17:03:08 +02:00
28b53ae8cf Bugfixes 2018-07-19 12:04:17 +02:00
f1b6802676 TL bugfixes 2018-07-17 16:07:46 +02:00
90896a46df Apply fixes from StyleCI 2018-07-13 15:21:08 +00:00
94f20292c3 Bugfixes to combined API, perfomance improvements, additional internal processing for config/user updates 2018-07-13 17:20:47 +02:00
0820d61545 Apply fixes from StyleCI 2018-07-13 00:45:34 +00:00
Daniil Gentili
384039eea7 fix 2018-07-13 00:45:14 +00:00
5d3d899b34 Apply fixes from StyleCI 2018-07-12 19:03:54 +00:00
e6157986b8 TL schema path bugfix 2018-07-12 21:03:30 +02:00
28436dedc1 Bugfix 2018-07-12 19:24:01 +02:00
073ca172f6 Apply fixes from StyleCI 2018-07-11 14:39:53 +00:00
40857b705e parse_mode fixes 2018-07-11 16:39:38 +02:00