Commit Graph

196 Commits

Author SHA1 Message Date
Daniil Gentili 92717a2d05
MUUUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA BUUURN SNAKES BUUURN MUAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA cough 2019-10-29 22:41:31 +01:00
Daniil Gentili 7a9da5718e
Make everything CamelCase 2019-10-29 21:33:23 +01:00
Daniil Gentili e0b293b9a1 cs-fix 2019-09-02 17:08:36 +02:00
Daniil Gentili d1bbc86d21 Bugfixes 2019-09-02 15:30:29 +02:00
Daniil Gentili 3107aee776 PHPDOC 2019-09-01 14:07:04 +02:00
Daniil Gentili 40c0976c5a Almost finished refactoring 2019-09-01 01:52:28 +02:00
Daniil Gentili 31fb37d39c Improved logs 2019-06-17 12:42:42 +02:00
Daniil Gentili a4e25ecfa2 Bypass possible server-side bug 2019-06-05 22:01:11 +02:00
Daniil Gentili 986b0efd8d Finish writing changelog 2019-06-05 19:10:26 +02:00
Daniil Gentili a1daca04da
Style fixes 2019-06-04 14:55:58 +02:00
Daniil Gentili 387584a178 Multiple args 2019-06-04 13:29:46 +02:00
Daniil Gentili c6b3aa96d0 Update copyrights 2019-05-31 12:18:10 +02:00
Daniil Gentili afbb08a027 Fixes 2019-05-13 13:07:30 +02:00
Daniil Gentili f7bd6a922e Bugfixes 2019-05-12 20:33:18 +02:00
Daniil Gentili fc459f5e49 Sm0l fix 2019-05-12 12:36:09 +02:00
Daniil Gentili d44e35f514 Async button click 2019-05-11 21:04:01 +02:00
Daniil Gentili fcad92d7cb Remove old synchronous methods 2019-05-11 17:55:30 +02:00
Daniil Gentili caec0e5109 Asyncify (5th and final pass) 2019-05-11 17:18:10 +02:00
Daniil Gentili dee94bab3a CombinedAPI bugfixes 2019-05-10 13:49:16 +02:00
Daniil Gentili c993f4d207 Multiple bugfixes 2019-05-10 13:34:44 +02:00
Daniil Gentili 4c52776de9 Fix serialization during async construction 2019-05-03 20:30:30 +02:00
Daniil Gentili e31555b7a7 More bugfixes and rewriting 2019-04-29 14:42:08 +00:00
Daniil Gentili 7005cdf10a Multiple async and VoIP improvements 2019-03-29 20:25:42 +01:00
davtur19 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
Daniil Gentili 57970e9019 Important bugfix 2018-12-28 18:09:30 +01:00
Daniil Gentili 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 837c541ea7 Apply fixes from StyleCI 2018-08-28 18:58:20 +00:00
Daniil Gentili 41c682a12d Fix recursive alphabetical search and implement nothing in the socket fix 2018-08-28 20:55:49 +02:00
Daniil Gentili 28b53ae8cf Bugfixes 2018-07-19 12:04:17 +02:00
Daniil Gentili 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
Daniil Gentili 495294eb12 Hotfix 2018-05-25 16:22:27 +02:00
Daniil Gentili c97aced309 Use non-static logger 2018-04-08 17:53:30 +00:00
Daniil Gentili e8b77cb722 Final improvements 2018-04-01 17:30:57 +00:00
Daniil Gentili caaffb60f1 Apply fixes from StyleCI 2018-04-01 17:23:39 +00:00
Daniil Gentili 588aea5c8e Stability fixes 2018-04-01 19:23:20 +02:00
Daniil Gentili 91fa43094d Add loop callback method in event handler, add support for secret chats in sendMessage, update magnaluna 2018-03-29 21:04:50 +00:00
Daniil Gentili 86d146c977 Apply fixes from StyleCI 2018-03-23 15:39:58 +00:00
Daniil Gentili a18cfa28ef Do not resend query right away if not on altervista 2018-03-22 11:22:25 +00:00
Daniil Gentili eae850eedb Improve retry management on unstable connections, peformance improvements 2018-03-22 02:07:44 +00:00
Daniil Gentili 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 63823fc3cc Apply fixes from StyleCI 2018-03-14 14:30:22 +00:00
Daniil Gentili 1f07833322 Improvements to serialization and peer management 2018-03-14 14:29:38 +00:00
Daniil Gentili 071be3bb80 Reorganizing documentation, rewrote peer management 2018-03-12 21:10:49 +00:00
Daniil Gentili 0d2ed128ac Improvements to peer management 2018-03-12 00:29:51 +00:00
Daniil Gentili 8c4b65762f Stability improvements 2018-03-11 15:16:00 +00:00
Daniil Gentili a2160c9008 Implement participant caching and hash generation 2018-03-11 14:29:27 +00:00
Daniil Gentili d4405566ea Bugfixes 2018-03-08 22:19:03 +01:00
Daniil Gentili c218517673 HTTP fixes 2018-03-04 14:37:45 +01:00
Daniil Gentili 0aef3ee897 Apply fixes from StyleCI 2018-03-03 18:16:20 +00:00
Daniil Gentili b2b5c97753 Improve retry management 2018-03-03 18:16:01 +00:00